scrapzirra 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/scrapzirra/injector.rb +1 -1
- data/lib/scrapzirra/version.rb +1 -1
- data/scrapzirra.gemspec +4 -3
- data/spec/scrapzirra/injector_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +33 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a11b972d507d48831942313d8d3bb23017cb9b04
|
4
|
+
data.tar.gz: 2a7d27c7d4a43e3979cbb137cd358eeb245c9617
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 568b8f596e76b0b585bdba12d82e1ebb4e78061327dc28598f37963810b218d17f213ac2f6bd1286e22aa8bafa03c794299982c4ef03ac792cd47fbbb1a500bf
|
7
|
+
data.tar.gz: 43cdadf9751a9424fe255f01f0e77e3f95921a621e49510425e69f582a828fea73ad768bf69e40a642e1c007aee91b027edd4762a0215438cd5451569849274a
|
data/lib/scrapzirra/injector.rb
CHANGED
@@ -5,7 +5,7 @@ module Scrapzirra
|
|
5
5
|
def initialize feed, options = {}
|
6
6
|
@feed = feed
|
7
7
|
@feed.class.send :include, Scrapzirra::FeedUtilities
|
8
|
-
@feed.entries.first.class.send :include, Scrapzirra::FeedUtilities unless @feed.entries.
|
8
|
+
@feed.entries.first.class.send :include, Scrapzirra::FeedUtilities unless @feed.entries.size.zero?
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/scrapzirra/version.rb
CHANGED
data/scrapzirra.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Scrapzirra::VERSION
|
9
9
|
gem.authors = ["Tomasz Tokarski"]
|
10
10
|
gem.email = ["tomasz@tomasztokarski.com"]
|
11
|
-
gem.description = %q{Addional script parsing tools for
|
12
|
-
gem.summary = %q{Addional script parsing tools for
|
11
|
+
gem.description = %q{Addional script parsing tools for feedjira}
|
12
|
+
gem.summary = %q{Addional script parsing tools for feedjira}
|
13
13
|
gem.homepage = "https://github.com/tiokksar/scrapzirra"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.add_dependency "
|
20
|
+
gem.add_dependency "feedjira"
|
21
21
|
gem.add_development_dependency "rspec"
|
22
|
+
gem.add_development_dependency "rspec-its"
|
22
23
|
end
|
@@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__), %w[.. spec_helper])
|
|
2
2
|
|
3
3
|
describe Scrapzirra::Injector do
|
4
4
|
let(:feed) do
|
5
|
-
|
5
|
+
Feedjira::Parser::Atom.parse(sample_atom_feed)
|
6
6
|
end
|
7
7
|
|
8
8
|
let(:injector) { Scrapzirra::Injector.new feed}
|
data/spec/spec_helper.rb
CHANGED
@@ -6,8 +6,9 @@ begin
|
|
6
6
|
rescue LoadError
|
7
7
|
end
|
8
8
|
|
9
|
+
require 'rspec/its'
|
9
10
|
require File.expand_path(File.dirname(__FILE__) + '/../lib/scrapzirra')
|
10
|
-
require '
|
11
|
+
require 'feedjira'
|
11
12
|
|
12
13
|
def load_sample(filename)
|
13
14
|
File.read("#{File.dirname(__FILE__)}/sample_feeds/#{filename}")
|
@@ -22,7 +23,6 @@ def sample_atom_entry_content
|
|
22
23
|
end
|
23
24
|
|
24
25
|
RSpec.configure do |config|
|
25
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
26
26
|
config.run_all_when_everything_filtered = true
|
27
27
|
config.filter_run :focus
|
28
28
|
end
|
metadata
CHANGED
@@ -1,58 +1,67 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrapzirra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.5
|
4
|
+
version: 0.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tomasz Tokarski
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
14
|
+
name: feedjira
|
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'
|
20
|
+
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
23
|
requirements:
|
26
|
-
- -
|
24
|
+
- - ">="
|
27
25
|
- !ruby/object:Gem::Version
|
28
26
|
version: '0'
|
29
|
-
name: feedzirra
|
30
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
31
34
|
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-its
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- -
|
45
|
+
- - ">="
|
36
46
|
- !ruby/object:Gem::Version
|
37
47
|
version: '0'
|
48
|
+
type: :development
|
38
49
|
prerelease: false
|
39
50
|
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
51
|
requirements:
|
42
|
-
- -
|
52
|
+
- - ">="
|
43
53
|
- !ruby/object:Gem::Version
|
44
54
|
version: '0'
|
45
|
-
|
46
|
-
description: Addional script parsing tools for feedzirra
|
55
|
+
description: Addional script parsing tools for feedjira
|
47
56
|
email:
|
48
57
|
- tomasz@tomasztokarski.com
|
49
58
|
executables: []
|
50
59
|
extensions: []
|
51
60
|
extra_rdoc_files: []
|
52
61
|
files:
|
53
|
-
- .gitignore
|
54
|
-
- .travis.yml
|
55
|
-
- .watchr
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
64
|
+
- ".watchr"
|
56
65
|
- Gemfile
|
57
66
|
- LICENSE.txt
|
58
67
|
- README.md
|
@@ -71,28 +80,27 @@ files:
|
|
71
80
|
- spec/spec_helper.rb
|
72
81
|
homepage: https://github.com/tiokksar/scrapzirra
|
73
82
|
licenses: []
|
83
|
+
metadata: {}
|
74
84
|
post_install_message:
|
75
85
|
rdoc_options: []
|
76
86
|
require_paths:
|
77
87
|
- lib
|
78
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
89
|
requirements:
|
81
|
-
- -
|
90
|
+
- - ">="
|
82
91
|
- !ruby/object:Gem::Version
|
83
92
|
version: '0'
|
84
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
94
|
requirements:
|
87
|
-
- -
|
95
|
+
- - ">="
|
88
96
|
- !ruby/object:Gem::Version
|
89
97
|
version: '0'
|
90
98
|
requirements: []
|
91
99
|
rubyforge_project:
|
92
|
-
rubygems_version:
|
100
|
+
rubygems_version: 2.2.2
|
93
101
|
signing_key:
|
94
|
-
specification_version:
|
95
|
-
summary: Addional script parsing tools for
|
102
|
+
specification_version: 4
|
103
|
+
summary: Addional script parsing tools for feedjira
|
96
104
|
test_files:
|
97
105
|
- spec/sample_feeds/AmazonWebServicesBlog.xml
|
98
106
|
- spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml
|
@@ -100,4 +108,3 @@ test_files:
|
|
100
108
|
- spec/scrapzirra/injector_spec.rb
|
101
109
|
- spec/scrapzirra/scrap_spec.rb
|
102
110
|
- spec/spec_helper.rb
|
103
|
-
has_rdoc:
|