Skip to content

Commit

Permalink
reorganized folders to align with pub standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Achilleas Anagnostopoulos committed Dec 5, 2014
1 parent d7bfd3d commit 34767fc
Show file tree
Hide file tree
Showing 93 changed files with 30 additions and 38 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## 0.1.1 (November 24, 2014)
## 0.1.2 (November 27, 2014)

Renamed lib/driver to lib/src so that docgen works

## 0.1.1 (November 26, 2014)

Restructured folders to align with pub requirements

Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ The driver has a small dependency tree and implements Cassandra binary protocol
- Query result streaming
- Support for all Cassandra types including [user defined types](http://www.datastax.com/dev/blog/cql-in-2-1) (UDT), [tuples](http://www.datastax.com/documentation/developer/java-driver/2.1/java-driver/reference/tupleTypes.html) and custom types (via user-defined Codecs)

# Installing
First, add the library to the list of dependencies in your **pubspec.yaml** file:

```
dependencies:
dart_cassandra_cql: ">=0.1.1 <0.2.0"
```

Then, run ```pub install``` to install the package.

If your package is an [application package](https://www.dartlang.org/tools/pub/glossary.html#application-package) you should use ```any``` as the [version constraint](https://www.dartlang.org/tools/pub/glossary.html#version-constraint).

# Quick start

For a more in-depth explanation please check out the [Api](#api) section.
Expand Down
14 changes: 7 additions & 7 deletions lib/dart_cassandra_cql.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
library dart_cassandra_cql;

// Client API exports
export "driver/exceptions.dart" show AuthenticationException, CassandraException, NoHealthyConnectionsException, DriverException;
export "driver/types.dart";
export "driver/query.dart";
export "driver/protocol.dart" show ResultMessage, RowsResultMessage, VoidResultMessage, SetKeyspaceResultMessage, SchemaChangeResultMessage, EventMessage, Authenticator, PasswordAuthenticator;
export "driver/connection.dart" hide AsyncQueue;
export "driver/client.dart";
export "driver/stream.dart";
export "src/exceptions.dart" show AuthenticationException, CassandraException, NoHealthyConnectionsException, DriverException;
export "src/types.dart";
export "src/query.dart";
export "src/protocol.dart" show ResultMessage, RowsResultMessage, VoidResultMessage, SetKeyspaceResultMessage, SchemaChangeResultMessage, EventMessage, Authenticator, PasswordAuthenticator;
export "src/connection.dart" hide AsyncQueue;
export "src/client.dart";
export "src/stream.dart";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dart_cassandra_cql
version: 0.1.1
version: 0.1.2
author: Achilleas Anagnostopoulos
description: Dart driver for apache Cassandra
homepage: https://github.com/achilleasa/dart_cassandra_cql
Expand Down
2 changes: 1 addition & 1 deletion test/lib/chunked_input_reader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.chunked_input_reader;

import "package:unittest/unittest.dart";

import '../../lib/driver/stream.dart';
import '../../lib/src/stream.dart';

main({bool enableLogger : true}) {

Expand Down
2 changes: 1 addition & 1 deletion test/lib/connection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;
import "mocks/compression.dart" as compress;
import '../../lib/dart_cassandra_cql.dart' as cql;
import '../../lib/driver/exceptions.dart' as cqlEx;
import '../../lib/src/exceptions.dart' as cqlEx;

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
2 changes: 1 addition & 1 deletion test/lib/enum_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.enums;

import "dart:mirrors";
import "package:unittest/unittest.dart";
import '../../lib/driver/types.dart';
import '../../lib/src/types.dart';

Type _getMethodArgType(MethodMirror methodMirror) {
ParameterMirror paramMirror = methodMirror.parameters.first;
Expand Down
6 changes: 3 additions & 3 deletions test/lib/frame_parser_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "dart:async";
import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;

import '../../lib/driver/types.dart';
import '../../lib/driver/protocol.dart';
import '../../lib/driver/exceptions.dart';
import '../../lib/src/types.dart';
import '../../lib/src/protocol.dart';
import '../../lib/src/exceptions.dart';

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
8 changes: 4 additions & 4 deletions test/lib/frame_writer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ library dart_cassandra_cql.tests.frame_writer;
import "package:unittest/unittest.dart";
import "mocks/mocks.dart" as mock;

import '../../lib/driver/types.dart';
import '../../lib/driver/protocol.dart';
import '../../lib/driver/stream.dart';
import '../../lib/driver/exceptions.dart';
import '../../lib/src/types.dart';
import '../../lib/src/protocol.dart';
import '../../lib/src/stream.dart';
import '../../lib/src/exceptions.dart';

main({bool enableLogger : true}) {
if( enableLogger ){
Expand Down
2 changes: 1 addition & 1 deletion test/lib/mocks/custom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library dart_cassandra_cql.tests.custom;

import "dart:typed_data";
import "dart:convert";
import '../../../lib/driver/types.dart';
import '../../../lib/src/types.dart';

class CustomJson implements CustomType {
Map payload;
Expand Down
6 changes: 3 additions & 3 deletions test/lib/mocks/mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "dart:typed_data";
import "dart:io";
import "dart:async";
import "package:logging/logging.dart";
import '../../../lib/driver/stream.dart';
import '../../../lib/driver/protocol.dart';
import '../../../lib/driver/types.dart';
import '../../../lib/src/stream.dart';
import '../../../lib/src/protocol.dart';
import '../../../lib/src/types.dart';

final Logger mockLogger = new Logger("MockLogger");
bool initializedLogger = false;
Expand Down
4 changes: 2 additions & 2 deletions test/lib/serialization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "dart:io";
import "dart:math";
import "package:unittest/unittest.dart";

import '../../lib/driver/stream.dart';
import '../../lib/driver/types.dart';
import '../../lib/src/stream.dart';
import '../../lib/src/types.dart';
import "mocks/mocks.dart" as mock;
import 'mocks/custom.dart' as custom;

Expand Down
2 changes: 1 addition & 1 deletion test/lib/type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "dart:typed_data";
import "dart:io";
import "package:unittest/unittest.dart";

import '../../lib/driver/types.dart';
import '../../lib/src/types.dart';
import 'mocks/mocks.dart' as mock;
import "mocks/custom.dart" as custom;

Expand Down

0 comments on commit 34767fc

Please sign in to comment.