zemanta_client 0.0.1 → 0.0.2
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 +5 -0
- data/lib/zemanta/cache.rb +0 -3
- data/lib/zemanta/configuration.rb +0 -4
- data/lib/zemanta/fetcher/cache.rb +0 -6
- data/lib/zemanta/fetcher.rb +0 -5
- data/lib/zemanta/markup/link.rb +0 -4
- data/lib/zemanta/markup.rb +0 -4
- data/lib/zemanta/version.rb +1 -1
- data/lib/zemanta.rb +14 -8
- data/zemanta.gemspec +0 -1
- metadata +2 -18
data/README.md
CHANGED
@@ -62,3 +62,8 @@ And you will be returned Markup object or error will be raised if Zemanta return
|
|
62
62
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
63
63
|
4. Push to the branch (`git push origin my-new-feature`)
|
64
64
|
5. Create new Pull Request
|
65
|
+
|
66
|
+
## Changelog
|
67
|
+
|
68
|
+
0.0.2 - Got rid of autoloads.
|
69
|
+
0.0.1 - Initial release. Support for suggest_markup method and caching.
|
data/lib/zemanta/cache.rb
CHANGED
data/lib/zemanta/fetcher.rb
CHANGED
data/lib/zemanta/markup/link.rb
CHANGED
data/lib/zemanta/markup.rb
CHANGED
data/lib/zemanta/version.rb
CHANGED
data/lib/zemanta.rb
CHANGED
@@ -1,16 +1,22 @@
|
|
1
|
-
require 'active_support/dependencies/autoload'
|
2
1
|
require 'typhoeus'
|
3
2
|
require 'json'
|
4
3
|
require 'digest/md5'
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
require 'zemanta/cache'
|
6
|
+
require 'zemanta/cache/disk'
|
7
|
+
require 'zemanta/configuration'
|
8
|
+
require 'zemanta/configuration/null_storage'
|
9
|
+
require 'zemanta/fetcher'
|
10
|
+
require 'zemanta/fetcher/web'
|
11
|
+
require 'zemanta/fetcher/cache'
|
12
|
+
require 'zemanta/fetcher/cache/null_response'
|
13
|
+
require 'zemanta/fetcher/cache/response'
|
14
|
+
require 'zemanta/fetcher/cache/key'
|
15
|
+
require 'zemanta/markup'
|
16
|
+
require "zemanta/markup/link"
|
17
|
+
require 'zemanta/markup/link/target'
|
13
18
|
|
19
|
+
class Zemanta
|
14
20
|
def initialize(text)
|
15
21
|
@text = text
|
16
22
|
end
|
data/zemanta.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zemanta_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|
@@ -27,22 +27,6 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: activesupport
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
30
|
- !ruby/object:Gem::Dependency
|
47
31
|
name: rspec
|
48
32
|
requirement: !ruby/object:Gem::Requirement
|