Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/reddit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ library reddit;

import "dart:async";
import "dart:collection";
import "dart:convert" show JSON;
import "dart:convert" show json;
import 'dart:core';

import "package:http/http.dart";
import "package:logging/logging.dart";
Expand Down
2 changes: 1 addition & 1 deletion lib/src/listing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Listing extends FilterableQuery implements Stream<ListingResult> {
*
* The method [fetchMore] allows to request the next batch of data.
*/
class ListingResult extends MapMixin implements Map<String,dynamic> {
class ListingResult extends MapMixin {
Map<String,dynamic> _result;
Listing _listing;

Expand Down
4 changes: 2 additions & 2 deletions lib/src/query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Query {
Response response = await _reddit._client.get(uri);
Reddit.logger.finer("Response code ${response.statusCode}");
try {
return JSON.decode(response.body) as Map;
return json.decode(response.body) as Map;
} on FormatException catch (e) {
var exc =
new RedditApiException("Exception in parsing JSON from $uri", e);
Expand All @@ -43,7 +43,7 @@ class Query {
}
}

@proxy
// @proxy
class FilterableQuery extends Query {
/// The allowed filters
Iterable<String> _filters;
Expand Down
5 changes: 4 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: reddit
environment:
sdk: ">=2.0.0 <3.0.0"

description: A Reddit library for Dart.
version: 0.5.0
author: Steven Roose <stevenroose@gmail.com>
Expand All @@ -8,4 +11,4 @@ dependencies:
logging: ">=0.11.0 <0.12.0"
oauth2: ">=1.0.1 <2.0.0"
dev_dependencies:
unittest: any
test: ^1.5.1+1
2 changes: 1 addition & 1 deletion test/fullname_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library reddit.test.fullname;

import "package:reddit/reddit.dart";
import "package:unittest/unittest.dart";
import "package:test/test.dart";

void main() {
group("fullname", () {
Expand Down
2 changes: 1 addition & 1 deletion test/reddit_uri_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library reddit.test.uri;

import "package:reddit/reddit.dart";
import "package:unittest/unittest.dart";
import "package:test/test.dart";

void main() {
group("RedditUri", () {
Expand Down