disqus_api 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -4
- data/disqus_api.gemspec +7 -7
- data/lib/disqus_api/railtie.rb +3 -5
- data/lib/version.rb +1 -1
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '052892d058a1f76a00c0d72e92d97d7a943b42e1'
|
4
|
+
data.tar.gz: 41402c5a5b5064ee4aed1a67b19df18e409754d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c0f9b0774b5351bc4f616e8ae693a2506610f35f42a3088bab73bdea0a75c433c76a282b09f512459f570405f197e130acf69ae38dc81707c95f6b12cb05c1e
|
7
|
+
data.tar.gz: 4905d596bd1fb3f57e99df597db2eaf65ff416ecc31d1845f65cbb3ab4921304c7eca9675931c519930b83ffadd498e8039fe8c4e9c0efde56fb9574c5c74739
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/disqus_api.gemspec
CHANGED
@@ -6,22 +6,22 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.version = DisqusApi::VERSION
|
7
7
|
|
8
8
|
s.date = %q{2013-12-09}
|
9
|
-
s.authors = [
|
9
|
+
s.authors = ['Sergei Zinin (einzige)']
|
10
10
|
s.email = %q{szinin@gmail.com}
|
11
11
|
s.homepage = %q{http://github.com/toptal/disqus_api}
|
12
12
|
|
13
|
-
s.licenses = [
|
13
|
+
s.licenses = ['MIT']
|
14
14
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
|
-
s.require_paths = [
|
17
|
-
s.extra_rdoc_files = [
|
16
|
+
s.require_paths = ['lib']
|
17
|
+
s.extra_rdoc_files = ['README.md']
|
18
18
|
|
19
19
|
s.description = %q{Provides clean Disqus API for your Ruby app with a nice interface.}
|
20
20
|
s.summary = %q{Disqus API for Ruby}
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'activesupport'
|
23
|
-
s.add_runtime_dependency 'faraday',
|
24
|
-
s.add_runtime_dependency 'faraday_middleware',
|
22
|
+
s.add_runtime_dependency 'activesupport'
|
23
|
+
s.add_runtime_dependency 'faraday', '~> 0.9'
|
24
|
+
s.add_runtime_dependency 'faraday_middleware', '~> 0.10'
|
25
25
|
s.add_development_dependency 'rspec'
|
26
26
|
s.add_development_dependency 'rspec-its'
|
27
27
|
s.add_development_dependency 'rake'
|
data/lib/disqus_api/railtie.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
module DisqusApi
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer 'disqus_api.initialize' do
|
4
|
-
config_path =
|
4
|
+
config_path = Rails.root.join('config', 'disqus_api.yml')
|
5
5
|
|
6
|
-
if
|
7
|
-
DisqusApi.config = YAML.
|
8
|
-
File.read(Rails.root.join("config", "disqus_api.yml"))
|
9
|
-
).result)[Rails.env]
|
6
|
+
if config_path.exist?
|
7
|
+
DisqusApi.config = YAML.load(ERB.new(config_path.read).result)[Rails.env]
|
10
8
|
else
|
11
9
|
unless Rails.env.test?
|
12
10
|
puts "WARNING: No config/disqus_api.yml provided for Disqus API. Make sure to set configuration manually."
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disqus_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Zinin (einzige)
|
@@ -16,48 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5'
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5'
|
26
|
+
version: '0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: faraday
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.9
|
33
|
+
version: '0.9'
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.9
|
40
|
+
version: '0.9'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: faraday_middleware
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.10
|
47
|
+
version: '0.10'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.10
|
54
|
+
version: '0.10'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: rspec
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|