stale_fish 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,14 +1,10 @@
1
- source :gemcutter
1
+ source 'http://rubygems.org'
2
2
 
3
- group :runtime do
4
- gem 'fakeweb'
5
- gem 'activesupport', :require => "active_support/core_ext/numeric/time"
6
- end
3
+ gemspec
7
4
 
8
5
  group :test do
9
- gem 'rspec', :require => 'spec'
6
+ gem 'rspec', '~> 2.6.0'
10
7
  gem 'rake'
11
- gem 'bundler', '~> 0.9.5'
12
- gem 'jeweler'
8
+ gem 'bundler'
13
9
  end
14
10
 
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ stale_fish (1.3.1)
5
+ activesupport
6
+ fakeweb
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ activesupport (3.2.1)
12
+ i18n (~> 0.6)
13
+ multi_json (~> 1.0)
14
+ diff-lcs (1.1.3)
15
+ fakeweb (1.3.0)
16
+ i18n (0.6.0)
17
+ multi_json (1.0.4)
18
+ rake (0.9.2.2)
19
+ rspec (2.6.0)
20
+ rspec-core (~> 2.6.0)
21
+ rspec-expectations (~> 2.6.0)
22
+ rspec-mocks (~> 2.6.0)
23
+ rspec-core (2.6.4)
24
+ rspec-expectations (2.6.0)
25
+ diff-lcs (~> 1.1.2)
26
+ rspec-mocks (2.6.0)
27
+
28
+ PLATFORMS
29
+ ruby
30
+
31
+ DEPENDENCIES
32
+ bundler
33
+ rake
34
+ rspec (~> 2.6.0)
35
+ stale_fish!
data/README.rdoc CHANGED
@@ -23,15 +23,16 @@ Simply drop in a YAML file in your application (recommended location: {test/spec
23
23
 
24
24
  A sample YAML file:
25
25
 
26
- stale:
27
- twitter: # fixture name (this must be unique)
26
+ --- !omap
27
+ - stale:
28
+ - twitter: # fixture name (this must be unique)
28
29
  file: 'timeline.json' # fixture save location
29
30
  update_interval: 30.days # update interval
30
31
  check_against: http://twitter.com/api/timeline # data to update fixture with when stale
31
32
  request_type: POST # request type to use when updating: GET, POST
32
33
  update_method: StaleFishFixture.update_me # optional: this method is evaluated for a response instead of hitting the check_against param
33
34
  last_updated_at: # timestamp of last fixture update (can be left blank)
34
- gh_commits:
35
+ - gh_commits:
35
36
  file: 'commits.xml'
36
37
  update_interval: 3.days
37
38
  check_against: http://api.github.com/commits.xml
@@ -82,7 +83,7 @@ View the wiki: http://wiki.github.com/jsmestad/stale_fish
82
83
 
83
84
  == Thanks
84
85
 
85
- This utility uses FakeWeb, thanks to those contributors for there excellent work.
86
+ This utility uses FakeWeb, thanks to those contributors for their excellent work.
86
87
 
87
88
  == Copyright
88
89
 
data/Rakefile CHANGED
@@ -1,42 +1,17 @@
1
- require 'rake'
2
- require 'bundler'
3
-
1
+ #!/usr/bin/env rake
4
2
  begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "stale_fish"
8
- gem.summary = "keeps fixtures synchronized with sources to prevent outdated fixtures going undetected."
9
- gem.email = "justin.smestad@gmail.com"
10
- gem.homepage = "http://github.com/jsmestad/stale_fish"
11
- gem.authors = ["Justin Smestad"]
12
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
- bundle = Bundler::Definition.from_gemfile('Gemfile')
14
- bundle.dependencies.each do |dep|
15
- next unless dep.groups.include?(:runtime)
16
- gem.add_dependency(dep.name, dep.version_requirements.to_s)
17
- end
18
- end
19
- Jeweler::GemcutterTasks.new
3
+ require 'bundler/setup'
20
4
  rescue LoadError
21
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
22
- end
23
-
24
- require 'spec/rake/spectask'
25
- Spec::Rake::SpecTask.new(:spec) do |spec|
26
- spec.libs << 'lib' << 'spec'
27
- spec.spec_files = FileList['spec/**/*_spec.rb']
28
- end
29
-
30
- Spec::Rake::SpecTask.new(:rcov) do |spec|
31
- spec.libs << 'lib' << 'spec'
32
- spec.pattern = 'spec/**/*_spec.rb'
33
- spec.rcov = true
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
34
6
  end
35
7
 
8
+ require 'rspec/core'
9
+ require 'rspec/core/rake_task'
10
+ RSpec::Core::RakeTask.new(:spec)
36
11
 
37
12
  task :default => :spec
38
13
 
39
- require 'rake/rdoctask'
14
+ require 'rdoc/task'
40
15
  Rake::RDocTask.new do |rdoc|
41
16
  if File.exist?('VERSION.yml')
42
17
  config = YAML.load(File.read('VERSION.yml'))
@@ -51,3 +26,4 @@ Rake::RDocTask.new do |rdoc|
51
26
  rdoc.rdoc_files.include('lib/**/*.rb')
52
27
  end
53
28
 
29
+ Bundler::GemHelper.install_tasks
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
data/lib/stale_fish.rb CHANGED
@@ -69,7 +69,7 @@ module StaleFish
69
69
 
70
70
  def load
71
71
  @fixtures = []
72
- entries = YAML::load(File.open(configuration))['stale']#.symbolize_keys!
72
+ entries = YAML::load(File.open(configuration))['stale']
73
73
  entries.each do |entry|
74
74
  entry.each do |key, definition|
75
75
  self.fixtures << StaleFish::Fixture.new(definition.merge({:name => key.to_s}))
@@ -1,5 +1,3 @@
1
- require 'activesupport'
2
-
3
1
  module StaleFish
4
2
  class Fixture
5
3
  attr_accessor :name, :file, :last_updated_at
data/spec/spec_helper.rb CHANGED
@@ -1,19 +1,19 @@
1
+ require 'bundler'
2
+
1
3
  Bundler.require(:default, :runtime, :test)
2
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
5
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
6
 
5
7
  require 'stale_fish'
6
- require 'spec'
7
- require 'spec/autorun'
8
+ require 'rspec'
9
+ require 'rspec/autorun'
8
10
 
9
11
  # Requires supporting files with custom matchers and macros, etc,
10
12
  # in ./support/ and its subdirectories.
11
13
  Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
12
14
 
13
15
  Spec::Runner.configure do |config|
14
-
15
16
  config.before :all do
16
17
  StaleFish.configuration = nil
17
18
  end
18
-
19
19
  end
data/stale_fish.gemspec CHANGED
@@ -1,62 +1,21 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
1
+ $:.push File.expand_path("../lib", __FILE__)
5
2
 
6
3
  Gem::Specification.new do |s|
7
4
  s.name = %q{stale_fish}
8
- s.version = "1.3.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
5
+ s.version = "1.3.1"
11
6
  s.authors = ["Justin Smestad"]
12
- s.date = %q{2010-03-08}
7
+ s.date = %q{2012-02-16}
13
8
  s.email = %q{justin.smestad@gmail.com}
14
- s.extra_rdoc_files = [
15
- "LICENSE",
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".gitignore",
20
- "Gemfile",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "lib/stale_fish.rb",
26
- "lib/stale_fish/fixture.rb",
27
- "spec/spec.opts",
28
- "spec/spec_helper.rb",
29
- "spec/support/stale_fish.yml",
30
- "spec/support/test.yml",
31
- "spec/unit/fixture_spec.rb",
32
- "spec/unit/stale_fish_spec.rb",
33
- "stale_fish.gemspec"
34
- ]
35
- s.homepage = %q{http://github.com/jsmestad/stale_fish}
9
+ s.homepage = %q{https://github.com/jsmestad/stale_fish}
10
+ s.summary = "Stub HTTP responses"
11
+ s.description = "Stub HTTP responses"
36
12
  s.rdoc_options = ["--charset=UTF-8"]
37
13
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.6}
39
- s.summary = %q{keeps fixtures synchronized with sources to prevent outdated fixtures going undetected.}
40
- s.test_files = [
41
- "spec/spec_helper.rb",
42
- "spec/unit/fixture_spec.rb",
43
- "spec/unit/stale_fish_spec.rb"
44
- ]
45
14
 
46
- if s.respond_to? :specification_version then
47
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
- s.specification_version = 3
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
49
17
 
50
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<fakeweb>, [">= 0"])
52
- s.add_runtime_dependency(%q<activesupport>, [">= 0"])
53
- else
54
- s.add_dependency(%q<fakeweb>, [">= 0"])
55
- s.add_dependency(%q<activesupport>, [">= 0"])
56
- end
57
- else
58
- s.add_dependency(%q<fakeweb>, [">= 0"])
59
- s.add_dependency(%q<activesupport>, [">= 0"])
60
- end
18
+ s.add_dependency(%q<fakeweb>, [">= 0"])
19
+ s.add_dependency(%q<activesupport>, [">= 0"])
61
20
  end
62
21
 
metadata CHANGED
@@ -1,58 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: stale_fish
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 3
8
- - 0
9
- version: 1.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Justin Smestad
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-03-08 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: fakeweb
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
16
+ requirement: &70317764659880 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
30
22
  type: :runtime
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- name: activesupport
34
23
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
- version: "0"
24
+ version_requirements: *70317764659880
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ requirement: &70317764659380 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
42
33
  type: :runtime
43
- version_requirements: *id002
44
- description:
34
+ prerelease: false
35
+ version_requirements: *70317764659380
36
+ description: Stub HTTP responses
45
37
  email: justin.smestad@gmail.com
46
38
  executables: []
47
-
48
39
  extensions: []
49
-
50
- extra_rdoc_files:
51
- - LICENSE
52
- - README.rdoc
53
- files:
40
+ extra_rdoc_files: []
41
+ files:
54
42
  - .gitignore
55
43
  - Gemfile
44
+ - Gemfile.lock
56
45
  - LICENSE
57
46
  - README.rdoc
58
47
  - Rakefile
@@ -66,37 +55,41 @@ files:
66
55
  - spec/unit/fixture_spec.rb
67
56
  - spec/unit/stale_fish_spec.rb
68
57
  - stale_fish.gemspec
69
- has_rdoc: true
70
- homepage: http://github.com/jsmestad/stale_fish
58
+ homepage: https://github.com/jsmestad/stale_fish
71
59
  licenses: []
72
-
73
60
  post_install_message:
74
- rdoc_options:
61
+ rdoc_options:
75
62
  - --charset=UTF-8
76
- require_paths:
63
+ require_paths:
77
64
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- segments:
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ segments:
83
72
  - 0
84
- version: "0"
85
- required_rubygems_version: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- segments:
73
+ hash: -2444235308358331029
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ segments:
90
81
  - 0
91
- version: "0"
82
+ hash: -2444235308358331029
92
83
  requirements: []
93
-
94
84
  rubyforge_project:
95
- rubygems_version: 1.3.6
85
+ rubygems_version: 1.8.11
96
86
  signing_key:
97
87
  specification_version: 3
98
- summary: keeps fixtures synchronized with sources to prevent outdated fixtures going undetected.
99
- test_files:
88
+ summary: Stub HTTP responses
89
+ test_files:
90
+ - spec/spec.opts
100
91
  - spec/spec_helper.rb
92
+ - spec/support/stale_fish.yml
93
+ - spec/support/test.yml
101
94
  - spec/unit/fixture_spec.rb
102
95
  - spec/unit/stale_fish_spec.rb