readit 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -1
  3. data/Gemfile +3 -7
  4. data/Readme.md +1 -1
  5. data/lib/readit.rb +26 -6
  6. data/lib/readit/version.rb +1 -1
  7. data/spec/cases/parser_spec.rb +8 -2
  8. data/spec/cassettes/Readit_API/can_add_tags_to_one_bookmark.yml +604 -620
  9. data/spec/cassettes/Readit_API/can_fetch_all_tags_information_of_current_user.yml +16 -10
  10. data/spec/cassettes/Readit_API/can_fetch_tags_of_one_bookmark.yml +613 -602
  11. data/spec/cassettes/Readit_API/can_get_bookmark_location_when_bookmarked_a_url.yml +12 -11
  12. data/spec/cassettes/Readit_API/can_get_meta_infos_of_bookmarks.yml +584 -599
  13. data/spec/cassettes/Readit_API/can_remove_tag_info_of_one_bookmark_by_tag_id.yml +619 -632
  14. data/spec/cassettes/Readit_API/should_add_bookmark.yml +12 -11
  15. data/spec/cassettes/Readit_API/should_get_bookmarks_according_to_added_since.yml +8 -8
  16. data/spec/cassettes/Readit_API/should_get_the_article_content.yml +8 -8
  17. data/spec/cassettes/Readit_API/should_get_the_bookmark_info_by_bookmark_id.yml +610 -635
  18. data/spec/cassettes/Readit_API/should_get_user_infos.yml +18 -14
  19. data/spec/cassettes/Readit_API/should_get_user_s_bookmarks.yml +570 -573
  20. data/spec/cassettes/Readit_API/should_provide_the_bookmark_id_of_an_already_bookmarked_url.yml +615 -604
  21. data/spec/cassettes/Readit_API/should_update_bookmark_to_archive.yml +671 -729
  22. data/spec/cassettes/Readit_API/should_update_bookmark_to_favarite.yml +650 -697
  23. data/spec/cassettes/Readit_Parser/api_confidence_should_return_with_a_confidence.yml +87 -0
  24. data/spec/cassettes/Readit_Parser/should_return_parsed_article_cotents.yml +3 -3
  25. data/spec/spec_helper.rb +1 -1
  26. metadata +15 -21
@@ -0,0 +1,87 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.readability.com/api/content/v1/confidence?url=http://statico.github.com/vim.html
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Date:
24
+ - Mon, 20 May 2013 17:01:58 GMT
25
+ P3p:
26
+ - CP='Legacy Only. Go to https://readability.com/about/terms/ for full terms.'
27
+ Server:
28
+ - nginx/1.2.6
29
+ Vary:
30
+ - Accept-Encoding
31
+ - Authorization, Cookie
32
+ Transfer-Encoding:
33
+ - chunked
34
+ Connection:
35
+ - keep-alive
36
+ body:
37
+ encoding: UTF-8
38
+ string: |-
39
+ {
40
+ "url": "http://statico.github.com/vim.html",
41
+ "confidence": 1
42
+ }
43
+ http_version:
44
+ recorded_at: Mon, 20 May 2013 17:01:58 GMT
45
+ - request:
46
+ method: get
47
+ uri: http://www.readability.com/api/content/v1/confidence?url=http://statico.github.com/vim.html
48
+ body:
49
+ encoding: US-ASCII
50
+ string: ''
51
+ headers:
52
+ Accept-Encoding:
53
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
54
+ Accept:
55
+ - '*/*'
56
+ User-Agent:
57
+ - Ruby
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Content-Type:
64
+ - application/json; charset=utf-8
65
+ Date:
66
+ - Mon, 20 May 2013 17:01:58 GMT
67
+ P3p:
68
+ - CP='Legacy Only. Go to https://readability.com/about/terms/ for full terms.'
69
+ Server:
70
+ - nginx/1.2.6
71
+ Vary:
72
+ - Accept-Encoding
73
+ - Authorization, Cookie
74
+ Transfer-Encoding:
75
+ - chunked
76
+ Connection:
77
+ - keep-alive
78
+ body:
79
+ encoding: UTF-8
80
+ string: |-
81
+ {
82
+ "url": "http://statico.github.com/vim.html",
83
+ "confidence": 1
84
+ }
85
+ http_version:
86
+ recorded_at: Mon, 20 May 2013 17:01:58 GMT
87
+ recorded_with: VCR 2.5.0
@@ -19,11 +19,11 @@ http_interactions:
19
19
  Content-Type:
20
20
  - application/json; charset=utf-8
21
21
  Date:
22
- - Wed, 20 Feb 2013 04:49:23 GMT
22
+ - Thu, 28 Mar 2013 02:05:54 GMT
23
23
  P3p:
24
24
  - CP='Legacy Only. Go to https://readability.com/about/terms/ for full terms.'
25
25
  Server:
26
- - nginx/1.2.1
26
+ - nginx/1.2.6
27
27
  Vary:
28
28
  - Accept-Encoding
29
29
  - Authorization, Cookie
@@ -634,5 +634,5 @@ http_interactions:
634
634
  IExhbmd3b3J0aOKAmXMgVGhpbmdzIG9mIFZhcmlhYmxlIEludGVyZXN0IiwK
635
635
  ICAgICJyZW5kZXJlZF9wYWdlcyI6IDEKfQ==
636
636
  http_version:
637
- recorded_at: Wed, 20 Feb 2013 04:49:27 GMT
637
+ recorded_at: Thu, 28 Mar 2013 02:05:55 GMT
638
638
  recorded_with: VCR 2.0.1
data/spec/spec_helper.rb CHANGED
@@ -21,6 +21,7 @@ VCR.configure do |c|
21
21
  }
22
22
  end
23
23
 
24
+
24
25
  RSpec.configure do |c|
25
26
  c.mock_with :rspec
26
27
  c.color_enabled = true
@@ -30,5 +31,4 @@ RSpec.configure do |c|
30
31
  end
31
32
 
32
33
 
33
-
34
34
  require_relative '../lib/readit'
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - dongbin.li
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-20 00:00:00.000000000 Z
11
+ date: 2013-05-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: multi_json
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: hashie
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: oauth
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: a simple readability api client
@@ -103,32 +96,32 @@ files:
103
96
  - spec/cassettes/Readit_API/should_provide_the_bookmark_id_of_an_already_bookmarked_url.yml
104
97
  - spec/cassettes/Readit_API/should_update_bookmark_to_archive.yml
105
98
  - spec/cassettes/Readit_API/should_update_bookmark_to_favarite.yml
99
+ - spec/cassettes/Readit_Parser/api_confidence_should_return_with_a_confidence.yml
106
100
  - spec/cassettes/Readit_Parser/should_return_parsed_article_cotents.yml
107
101
  - spec/readability.yml.sample
108
102
  - spec/spec_helper.rb
109
103
  homepage: https://github.com/29decibel/readit
110
104
  licenses: []
105
+ metadata: {}
111
106
  post_install_message:
112
107
  rdoc_options: []
113
108
  require_paths:
114
109
  - lib
115
110
  required_ruby_version: !ruby/object:Gem::Requirement
116
- none: false
117
111
  requirements:
118
- - - ! '>='
112
+ - - '>='
119
113
  - !ruby/object:Gem::Version
120
114
  version: '0'
121
115
  required_rubygems_version: !ruby/object:Gem::Requirement
122
- none: false
123
116
  requirements:
124
- - - ! '>='
117
+ - - '>='
125
118
  - !ruby/object:Gem::Version
126
119
  version: '0'
127
120
  requirements: []
128
121
  rubyforge_project: readit
129
- rubygems_version: 1.8.23
122
+ rubygems_version: 2.0.3
130
123
  signing_key:
131
- specification_version: 3
124
+ specification_version: 4
132
125
  summary: a simple readability api client
133
126
  test_files:
134
127
  - features/api.feature
@@ -158,6 +151,7 @@ test_files:
158
151
  - spec/cassettes/Readit_API/should_provide_the_bookmark_id_of_an_already_bookmarked_url.yml
159
152
  - spec/cassettes/Readit_API/should_update_bookmark_to_archive.yml
160
153
  - spec/cassettes/Readit_API/should_update_bookmark_to_favarite.yml
154
+ - spec/cassettes/Readit_Parser/api_confidence_should_return_with_a_confidence.yml
161
155
  - spec/cassettes/Readit_Parser/should_return_parsed_article_cotents.yml
162
156
  - spec/readability.yml.sample
163
157
  - spec/spec_helper.rb