readit 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Readme.md CHANGED
@@ -23,6 +23,7 @@ config/readability.yml
23
23
  development:
24
24
  consumer_key: some_key
25
25
  consumer_secret: some_secret
26
+ parser_token: some_parser_token
26
27
  ```
27
28
 
28
29
  or in your code
@@ -31,6 +32,7 @@ or in your code
31
32
 
32
33
  Readit::Config.consumer_key = some_key
33
34
  Readit::Config.consumer_secret = some_value
35
+ Readit::Config.parser_token = some_parser_token
34
36
  ```
35
37
 
36
38
  ### API usage
@@ -90,12 +92,6 @@ bookmark_info = @api.bookmark(:url=>'http://some_article_url.html')
90
92
  @api.remove_tag bookmark_id, tag_id
91
93
  ```
92
94
 
93
- ### Parser
94
- ```ruby
95
- @parser = Readit::Parser.new "some_parser_token"
96
- @parser.parse some_url
97
- ```
98
-
99
95
  #### Get Article
100
96
  ```ruby
101
97
  # get one artile by article_id
@@ -103,6 +99,15 @@ bookmark_info = @api.bookmark(:url=>'http://some_article_url.html')
103
99
 
104
100
  ```
105
101
 
102
+ ### Parser
103
+ ```ruby
104
+ # create a parser client
105
+ @parser = Readit::Parser.new "some_parser_token"
106
+ # parse one url
107
+ @parser.parse some_url
108
+ # now you will get a object with title, content, etc.
109
+ ```
110
+
106
111
  ### At last but not least
107
112
  >Contributions are welcome!
108
113
 
@@ -6,6 +6,7 @@ module Readit
6
6
  if consumer_info
7
7
  Readit::Config.consumer_key = consumer_info["consumer_key"]
8
8
  Readit::Config.consumer_secret = consumer_info["consumer_secret"]
9
+ Readit::Config.parser_token = consumer_info["parser_token"]
9
10
  else
10
11
  Rails.logger.warn "Please check your config/readability.yml file, no consumer_key and consumer_sercret under #{Rails.env} found"
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Readit
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: