readit 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +12 -0
- data/Gemfile +3 -1
- data/Readme.md +61 -5
- data/features/bookmarks.feature +9 -9
- data/features/readability.yml.sample +6 -0
- data/features/step_definitions/api_steps.rb +4 -4
- data/lib/readit/version.rb +1 -1
- data/lib/readit.rb +89 -11
- data/spec/cases/api_spec.rb +29 -6
- data/spec/cases/parser_spec.rb +19 -0
- data/spec/cases/tags_spec.rb +46 -0
- data/spec/cassettes/Readit_API/can_add_tags_to_one_bookmark.yml +699 -0
- data/spec/cassettes/Readit_API/can_fetch_all_tags_information_of_current_user.yml +45 -0
- data/spec/cassettes/Readit_API/can_fetch_tags_of_one_bookmark.yml +687 -0
- data/spec/cassettes/Readit_API/can_get_bookmark_location_when_bookmarked_a_url.yml +52 -0
- data/spec/cassettes/Readit_API/can_get_meta_infos_of_bookmarks.yml +646 -0
- data/spec/cassettes/Readit_API/can_remove_tag_info_of_one_bookmark_by_tag_id.yml +786 -0
- data/spec/cassettes/Readit_API/should_add_bookmark.yml +52 -0
- data/spec/cassettes/Readit_API/should_get_bookmarks_according_to_added_since.yml +86 -0
- data/spec/cassettes/Readit_API/should_get_the_article_content.yml +322 -0
- data/spec/cassettes/Readit_API/should_get_the_bookmark_info_by_bookmark_id.yml +713 -0
- data/spec/cassettes/Readit_API/should_get_user_infos.yml +51 -0
- data/spec/cassettes/Readit_API/should_get_user_s_bookmarks.yml +634 -0
- data/spec/cassettes/Readit_API/should_provide_the_bookmark_id_of_an_already_bookmarked_url.yml +683 -0
- data/spec/cassettes/Readit_API/should_update_bookmark_to_archive.yml +808 -0
- data/spec/cassettes/Readit_API/should_update_bookmark_to_favarite.yml +808 -0
- data/spec/cassettes/Readit_Parser/should_return_parsed_article_cotents.yml +638 -0
- data/spec/readability.yml.sample +7 -0
- data/spec/spec_helper.rb +28 -1
- metadata +65 -11
- data/readability.yml.sample +0 -3
data/spec/spec_helper.rb
CHANGED
@@ -4,4 +4,31 @@ rescue LoadError
|
|
4
4
|
puts 'Although not required, bundler is recommended for running the tests.'
|
5
5
|
end
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
require 'vcr'
|
9
|
+
VCR.configure do |c|
|
10
|
+
c.cassette_library_dir = 'spec/cassettes'
|
11
|
+
c.hook_into :webmock
|
12
|
+
c.configure_rspec_metadata!
|
13
|
+
|
14
|
+
tokens = YAML.load_file(File.join(File.dirname(__FILE__),'./readability.yml'))["development"]
|
15
|
+
tokens.values.each do |sv|
|
16
|
+
c.filter_sensitive_data('<TOKENS>') { sv }
|
17
|
+
end
|
18
|
+
c.default_cassette_options = {
|
19
|
+
:match_requests_on => [:method,
|
20
|
+
VCR.request_matchers.uri_without_param(:token)]
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
RSpec.configure do |c|
|
25
|
+
c.mock_with :rspec
|
26
|
+
c.color_enabled = true
|
27
|
+
# so we can use `:vcr` rather than `:vcr => true`;
|
28
|
+
# in RSpec 3 this will no longer be necessary.
|
29
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
require_relative '../lib/readit'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: hashie
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: oauth
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
description: a simple readability api client
|
48
63
|
email:
|
49
64
|
- mike.d.1984@gmail.com
|
@@ -52,6 +67,7 @@ extensions: []
|
|
52
67
|
extra_rdoc_files: []
|
53
68
|
files:
|
54
69
|
- .gitignore
|
70
|
+
- .travis.yml
|
55
71
|
- Gemfile
|
56
72
|
- Guardfile
|
57
73
|
- Rakefile
|
@@ -59,6 +75,7 @@ files:
|
|
59
75
|
- features/api.feature
|
60
76
|
- features/articles.feature
|
61
77
|
- features/bookmarks.feature
|
78
|
+
- features/readability.yml.sample
|
62
79
|
- features/step_definitions/api_steps.rb
|
63
80
|
- features/step_definitions/articles_steps.rb
|
64
81
|
- features/step_definitions/bookmarks_steps.rb
|
@@ -67,9 +84,27 @@ files:
|
|
67
84
|
- lib/readit.rb
|
68
85
|
- lib/readit/railtie.rb
|
69
86
|
- lib/readit/version.rb
|
70
|
-
- readability.yml.sample
|
71
87
|
- readit.gemspec
|
72
88
|
- spec/cases/api_spec.rb
|
89
|
+
- spec/cases/parser_spec.rb
|
90
|
+
- spec/cases/tags_spec.rb
|
91
|
+
- spec/cassettes/Readit_API/can_add_tags_to_one_bookmark.yml
|
92
|
+
- spec/cassettes/Readit_API/can_fetch_all_tags_information_of_current_user.yml
|
93
|
+
- spec/cassettes/Readit_API/can_fetch_tags_of_one_bookmark.yml
|
94
|
+
- spec/cassettes/Readit_API/can_get_bookmark_location_when_bookmarked_a_url.yml
|
95
|
+
- spec/cassettes/Readit_API/can_get_meta_infos_of_bookmarks.yml
|
96
|
+
- spec/cassettes/Readit_API/can_remove_tag_info_of_one_bookmark_by_tag_id.yml
|
97
|
+
- spec/cassettes/Readit_API/should_add_bookmark.yml
|
98
|
+
- spec/cassettes/Readit_API/should_get_bookmarks_according_to_added_since.yml
|
99
|
+
- spec/cassettes/Readit_API/should_get_the_article_content.yml
|
100
|
+
- spec/cassettes/Readit_API/should_get_the_bookmark_info_by_bookmark_id.yml
|
101
|
+
- spec/cassettes/Readit_API/should_get_user_infos.yml
|
102
|
+
- spec/cassettes/Readit_API/should_get_user_s_bookmarks.yml
|
103
|
+
- spec/cassettes/Readit_API/should_provide_the_bookmark_id_of_an_already_bookmarked_url.yml
|
104
|
+
- spec/cassettes/Readit_API/should_update_bookmark_to_archive.yml
|
105
|
+
- spec/cassettes/Readit_API/should_update_bookmark_to_favarite.yml
|
106
|
+
- spec/cassettes/Readit_Parser/should_return_parsed_article_cotents.yml
|
107
|
+
- spec/readability.yml.sample
|
73
108
|
- spec/spec_helper.rb
|
74
109
|
homepage: https://github.com/29decibel/readit
|
75
110
|
licenses: []
|
@@ -91,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
126
|
version: '0'
|
92
127
|
requirements: []
|
93
128
|
rubyforge_project: readit
|
94
|
-
rubygems_version: 1.8.
|
129
|
+
rubygems_version: 1.8.23
|
95
130
|
signing_key:
|
96
131
|
specification_version: 3
|
97
132
|
summary: a simple readability api client
|
@@ -99,11 +134,30 @@ test_files:
|
|
99
134
|
- features/api.feature
|
100
135
|
- features/articles.feature
|
101
136
|
- features/bookmarks.feature
|
137
|
+
- features/readability.yml.sample
|
102
138
|
- features/step_definitions/api_steps.rb
|
103
139
|
- features/step_definitions/articles_steps.rb
|
104
140
|
- features/step_definitions/bookmarks_steps.rb
|
105
141
|
- features/step_definitions/user_info_steps.rb
|
106
142
|
- features/user_info.feature
|
107
143
|
- spec/cases/api_spec.rb
|
144
|
+
- spec/cases/parser_spec.rb
|
145
|
+
- spec/cases/tags_spec.rb
|
146
|
+
- spec/cassettes/Readit_API/can_add_tags_to_one_bookmark.yml
|
147
|
+
- spec/cassettes/Readit_API/can_fetch_all_tags_information_of_current_user.yml
|
148
|
+
- spec/cassettes/Readit_API/can_fetch_tags_of_one_bookmark.yml
|
149
|
+
- spec/cassettes/Readit_API/can_get_bookmark_location_when_bookmarked_a_url.yml
|
150
|
+
- spec/cassettes/Readit_API/can_get_meta_infos_of_bookmarks.yml
|
151
|
+
- spec/cassettes/Readit_API/can_remove_tag_info_of_one_bookmark_by_tag_id.yml
|
152
|
+
- spec/cassettes/Readit_API/should_add_bookmark.yml
|
153
|
+
- spec/cassettes/Readit_API/should_get_bookmarks_according_to_added_since.yml
|
154
|
+
- spec/cassettes/Readit_API/should_get_the_article_content.yml
|
155
|
+
- spec/cassettes/Readit_API/should_get_the_bookmark_info_by_bookmark_id.yml
|
156
|
+
- spec/cassettes/Readit_API/should_get_user_infos.yml
|
157
|
+
- spec/cassettes/Readit_API/should_get_user_s_bookmarks.yml
|
158
|
+
- spec/cassettes/Readit_API/should_provide_the_bookmark_id_of_an_already_bookmarked_url.yml
|
159
|
+
- spec/cassettes/Readit_API/should_update_bookmark_to_archive.yml
|
160
|
+
- spec/cassettes/Readit_API/should_update_bookmark_to_favarite.yml
|
161
|
+
- spec/cassettes/Readit_Parser/should_return_parsed_article_cotents.yml
|
162
|
+
- spec/readability.yml.sample
|
108
163
|
- spec/spec_helper.rb
|
109
|
-
has_rdoc:
|
data/readability.yml.sample
DELETED