mechanize_content 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/.rvmrc +1 -0
  2. data/Rakefile +5 -0
  3. data/lib/mechanize_content/image.rb +61 -0
  4. data/lib/mechanize_content/page.rb +115 -0
  5. data/lib/mechanize_content/util.rb +4 -31
  6. data/lib/mechanize_content/version.rb +1 -1
  7. data/lib/mechanize_content.rb +8 -168
  8. data/mechanize_content.gemspec +2 -1
  9. data/spec/cassettes/MechanizeContent.yml +33742 -0
  10. data/spec/cassettes/MechanizeContent_Image.yml +279 -0
  11. data/spec/mechanize_content/image_spec.rb +39 -0
  12. data/spec/mechanize_content/page_spec.rb +90 -0
  13. data/spec/mechanize_content_spec.rb +149 -0
  14. data/spec/spec_helper.rb +11 -1
  15. metadata +29 -45
  16. data/spec/fixtures/a-fistful-of-red-dead-redemption-ps3-for-a-few-dollars-less-on.html +0 -754
  17. data/spec/fixtures/another-world-15th-anniversary-edition-now-on-gog-com.html +0 -2416
  18. data/spec/fixtures/another_world_15th_anniversary_edition.html +0 -805
  19. data/spec/fixtures/cmp.html +0 -333
  20. data/spec/fixtures/episodes_from_liberty_city_now_coming_to_playstation_3_and_pc_this_april.html +0 -1593
  21. data/spec/fixtures/gdc_2010_rounds_off_indie_cove.html +0 -698
  22. data/spec/fixtures/google.html +0 -42
  23. data/spec/fixtures/gta-iv-episodes-from-liberty-city-sees-slight-delay-on-pc-and-ps3.html +0 -1012
  24. data/spec/fixtures/johnny.jpg +0 -0
  25. data/spec/fixtures/joystiq-xbox-usb-support-580.jpg +0 -0
  26. data/spec/fixtures/mutiny.html +0 -264
  27. data/spec/fixtures/nuff-said-good-old-games-gets-another-world-168150.html +0 -5492
  28. data/spec/fixtures/rock-band-3-out-this-holiday-will-revolutionize-genre.html +0 -1157
  29. data/spec/fixtures/rockband_facebook.html +0 -93
  30. data/spec/fixtures/spartan.html +0 -391
  31. data/spec/fixtures/techmeme.html +0 -2216
  32. data/spec/fixtures/time-warner-retail-egm.html +0 -49
  33. data/spec/fixtures/witcher.html +0 -458
  34. data/spec/fixtures/xbox-360-gaining-usb-storage-support-in-2010-update.html +0 -2462
  35. data/spec/mechanize-content_spec.rb +0 -202
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mechanize_content
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Griffin
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-28 00:00:00 Z
13
+ date: 2011-05-29 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mechanize
@@ -42,20 +42,31 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 2.5.0
45
+ version: 2.6.0
46
46
  type: :development
47
47
  version_requirements: *id003
48
48
  - !ruby/object:Gem::Dependency
49
- name: fakeweb
49
+ name: vcr
50
50
  prerelease: false
51
51
  requirement: &id004 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
55
55
  - !ruby/object:Gem::Version
56
- version: 1.3.0
56
+ version: 1.9.0
57
57
  type: :development
58
58
  version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: fakeweb
61
+ prerelease: false
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 1.3.0
68
+ type: :development
69
+ version_requirements: *id005
59
70
  description: pass in a url or urls and mechanize-content will select the best block of text, image and title by analysing the page content
60
71
  email:
61
72
  - johnog@gmail.com
@@ -68,34 +79,22 @@ extra_rdoc_files: []
68
79
  files:
69
80
  - .gitignore
70
81
  - .rspec
82
+ - .rvmrc
71
83
  - Gemfile
72
84
  - LICENSE
73
85
  - README.rdoc
74
86
  - Rakefile
75
87
  - lib/mechanize_content.rb
88
+ - lib/mechanize_content/image.rb
89
+ - lib/mechanize_content/page.rb
76
90
  - lib/mechanize_content/util.rb
77
91
  - lib/mechanize_content/version.rb
78
92
  - mechanize_content.gemspec
79
- - spec/fixtures/a-fistful-of-red-dead-redemption-ps3-for-a-few-dollars-less-on.html
80
- - spec/fixtures/another-world-15th-anniversary-edition-now-on-gog-com.html
81
- - spec/fixtures/another_world_15th_anniversary_edition.html
82
- - spec/fixtures/cmp.html
83
- - spec/fixtures/episodes_from_liberty_city_now_coming_to_playstation_3_and_pc_this_april.html
84
- - spec/fixtures/gdc_2010_rounds_off_indie_cove.html
85
- - spec/fixtures/google.html
86
- - spec/fixtures/gta-iv-episodes-from-liberty-city-sees-slight-delay-on-pc-and-ps3.html
87
- - spec/fixtures/johnny.jpg
88
- - spec/fixtures/joystiq-xbox-usb-support-580.jpg
89
- - spec/fixtures/mutiny.html
90
- - spec/fixtures/nuff-said-good-old-games-gets-another-world-168150.html
91
- - spec/fixtures/rock-band-3-out-this-holiday-will-revolutionize-genre.html
92
- - spec/fixtures/rockband_facebook.html
93
- - spec/fixtures/spartan.html
94
- - spec/fixtures/techmeme.html
95
- - spec/fixtures/time-warner-retail-egm.html
96
- - spec/fixtures/witcher.html
97
- - spec/fixtures/xbox-360-gaining-usb-storage-support-in-2010-update.html
98
- - spec/mechanize-content_spec.rb
93
+ - spec/cassettes/MechanizeContent.yml
94
+ - spec/cassettes/MechanizeContent_Image.yml
95
+ - spec/mechanize_content/image_spec.rb
96
+ - spec/mechanize_content/page_spec.rb
97
+ - spec/mechanize_content_spec.rb
99
98
  - spec/spec_helper.rb
100
99
  homepage: http://github.com/john-griffin/mechanize-content
101
100
  licenses: []
@@ -125,24 +124,9 @@ signing_key:
125
124
  specification_version: 3
126
125
  summary: scrape the best content from a page
127
126
  test_files:
128
- - spec/fixtures/a-fistful-of-red-dead-redemption-ps3-for-a-few-dollars-less-on.html
129
- - spec/fixtures/another-world-15th-anniversary-edition-now-on-gog-com.html
130
- - spec/fixtures/another_world_15th_anniversary_edition.html
131
- - spec/fixtures/cmp.html
132
- - spec/fixtures/episodes_from_liberty_city_now_coming_to_playstation_3_and_pc_this_april.html
133
- - spec/fixtures/gdc_2010_rounds_off_indie_cove.html
134
- - spec/fixtures/google.html
135
- - spec/fixtures/gta-iv-episodes-from-liberty-city-sees-slight-delay-on-pc-and-ps3.html
136
- - spec/fixtures/johnny.jpg
137
- - spec/fixtures/joystiq-xbox-usb-support-580.jpg
138
- - spec/fixtures/mutiny.html
139
- - spec/fixtures/nuff-said-good-old-games-gets-another-world-168150.html
140
- - spec/fixtures/rock-band-3-out-this-holiday-will-revolutionize-genre.html
141
- - spec/fixtures/rockband_facebook.html
142
- - spec/fixtures/spartan.html
143
- - spec/fixtures/techmeme.html
144
- - spec/fixtures/time-warner-retail-egm.html
145
- - spec/fixtures/witcher.html
146
- - spec/fixtures/xbox-360-gaining-usb-storage-support-in-2010-update.html
147
- - spec/mechanize-content_spec.rb
127
+ - spec/cassettes/MechanizeContent.yml
128
+ - spec/cassettes/MechanizeContent_Image.yml
129
+ - spec/mechanize_content/image_spec.rb
130
+ - spec/mechanize_content/page_spec.rb
131
+ - spec/mechanize_content_spec.rb
148
132
  - spec/spec_helper.rb