swish 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+ .rvmrc
21
+
22
+ ## PROJECT::SPECIFIC
23
+ swish*.gem
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :rubygems
2
+
3
+ gem 'rake'
4
+ gemspec
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ swish (0.8.1)
5
+ crack (>= 0.1.8)
6
+ httparty (>= 0.6.1)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ crack (0.3.1)
12
+ httparty (0.8.0)
13
+ multi_json
14
+ multi_xml
15
+ multi_json (1.0.3)
16
+ multi_xml (0.4.0)
17
+ rake (0.9.2)
18
+ test-unit (2.4.0)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ rake
25
+ swish!
26
+ test-unit
@@ -1,5 +1,7 @@
1
1
  = Swish! A Ruby wrapper for the Dribbble API
2
2
 
3
+ https://travis-ci.org/jeremyw/swish.png
4
+
3
5
  Learn about the Dribbble API at http://dribbble.com/api.
4
6
 
5
7
  == Installation
data/Rakefile CHANGED
@@ -1,31 +1,15 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "swish"
8
- gem.summary = %Q{A Ruby wrapper for the Dribbble API}
9
- gem.description = %Q{A Ruby wrapper for the Dribbble API}
10
- gem.email = "jeremy@weiskotten.com"
11
- gem.homepage = "http://github.com/jeremyw/swish"
12
- gem.authors = ["Jeremy Weiskotten"]
13
- gem.add_development_dependency "crack", ">= 0.1.8"
14
- gem.add_development_dependency "httparty", ">= 0.6.1"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
- end
1
+ require "bundler/gem_tasks"
21
2
 
22
3
  require 'rake/testtask'
23
4
  Rake::TestTask.new(:test) do |test|
24
5
  test.libs << 'lib' << 'test'
25
6
  test.pattern = 'test/**/*_test.rb'
26
7
  test.verbose = true
8
+ test.warning = true
27
9
  end
28
10
 
11
+ task :default => :test
12
+
29
13
  begin
30
14
  require 'rcov/rcovtask'
31
15
  Rcov::RcovTask.new do |test|
@@ -39,10 +23,6 @@ rescue LoadError
39
23
  end
40
24
  end
41
25
 
42
- task :test => :check_dependencies
43
-
44
- task :default => :test
45
-
46
26
  require 'rake/rdoctask'
47
27
  Rake::RDocTask.new do |rdoc|
48
28
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
@@ -14,7 +14,7 @@ module Dribbble
14
14
  end
15
15
 
16
16
  def get(*args, &block)
17
- self.class.get *args, &block
17
+ self.class.get(*args, &block)
18
18
  end
19
19
 
20
20
  def created_at
@@ -0,0 +1,5 @@
1
+ module Dribbble
2
+ module Gem
3
+ VERSION = "0.8.1"
4
+ end
5
+ end
@@ -1,68 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "dribbble/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{swish}
8
- s.version = "0.8.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jeremy Weiskotten"]
12
- s.date = %q{2011-03-06}
6
+ s.name = "swish"
7
+ s.version = Dribbble::Gem::VERSION
8
+ s.authors = ["Jeremy Weiskotten"]
9
+ s.email = ["jeremy@weiskotten.com"]
10
+ s.homepage = "https://github.com/jeremyw/swish"
11
+ s.summary = %q{A Ruby wrapper for the Dribbble API}
13
12
  s.description = %q{A Ruby wrapper for the Dribbble API}
14
- s.email = %q{jeremy@weiskotten.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "lib/dribbble/base.rb",
26
- "lib/dribbble/comment.rb",
27
- "lib/dribbble/paginated_list.rb",
28
- "lib/dribbble/player.rb",
29
- "lib/dribbble/shot.rb",
30
- "lib/swish.rb",
31
- "swish.gemspec",
32
- "test/base_test.rb",
33
- "test/comment_test.rb",
34
- "test/helper.rb",
35
- "test/paginated_list_test.rb",
36
- "test/player_test.rb",
37
- "test/shot_test.rb"
38
- ]
39
- s.homepage = %q{http://github.com/jeremyw/swish}
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
40
17
  s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.3.7}
42
- s.summary = %q{A Ruby wrapper for the Dribbble API}
43
- s.test_files = [
44
- "test/base_test.rb",
45
- "test/comment_test.rb",
46
- "test/helper.rb",
47
- "test/paginated_list_test.rb",
48
- "test/player_test.rb",
49
- "test/shot_test.rb"
50
- ]
51
18
 
52
- if s.respond_to? :specification_version then
53
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
54
- s.specification_version = 3
19
+ s.add_runtime_dependency(%q<crack>, [">= 0.1.8"])
20
+ s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
55
21
 
56
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
- s.add_development_dependency(%q<crack>, [">= 0.1.8"])
58
- s.add_development_dependency(%q<httparty>, [">= 0.6.1"])
59
- else
60
- s.add_dependency(%q<crack>, [">= 0.1.8"])
61
- s.add_dependency(%q<httparty>, [">= 0.6.1"])
62
- end
63
- else
64
- s.add_dependency(%q<crack>, [">= 0.1.8"])
65
- s.add_dependency(%q<httparty>, [">= 0.6.1"])
66
- end
22
+ s.add_development_dependency "rake"
23
+ s.add_development_dependency "test-unit"
67
24
  end
68
-
@@ -47,13 +47,13 @@ class PlayerTest < Test::Unit::TestCase
47
47
  shots.each do |shot|
48
48
  assert_kind_of Dribbble::Shot, shot
49
49
  assert_kind_of Dribbble::Player, shot.player
50
- assert_not_equal player, shot.player
51
50
  end
52
51
 
53
52
  shots = player.shots_following(:per_page => 2)
54
53
  assert_equal 2, shots.size
55
54
  shots.each do |shot|
56
- assert_not_equal player, shot.player
55
+ assert_kind_of Dribbble::Shot, shot
56
+ assert_kind_of Dribbble::Player, shot.player
57
57
  end
58
58
  end
59
59
 
@@ -85,8 +85,8 @@ class PlayerTest < Test::Unit::TestCase
85
85
  player = Dribbble::Player.find(1)
86
86
  following = player.following
87
87
  assert_equal 15, following.size, "default page size"
88
- following.each do |following|
89
- assert_kind_of Dribbble::Player, following
88
+ following.each do |following_player|
89
+ assert_kind_of Dribbble::Player, following_player
90
90
  end
91
91
 
92
92
  following = player.following(:per_page => 2)
@@ -28,8 +28,8 @@ class ShotTest < Test::Unit::TestCase
28
28
  assert_equal 21603, shot.id
29
29
  assert_equal 'Moon', shot.title
30
30
  assert_equal 'http://dribbble.com/shots/21603-Moon', shot.url
31
- assert_match /http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082.png\?\d+/, shot.image_url
32
- assert_match /http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082_teaser.png\?\d+/, shot.image_teaser_url
31
+ assert_match(/http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082.png\?\d+/, shot.image_url)
32
+ assert_match(/http:\/\/dribbble.com\/system\/users\/1\/screenshots\/21603\/shot_1274474082_teaser.png\?\d+/, shot.image_teaser_url)
33
33
  assert_equal 400, shot.width
34
34
  assert_equal 300, shot.height
35
35
 
metadata CHANGED
@@ -1,75 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: swish
3
- version: !ruby/object:Gem::Version
4
- hash: 63
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 8
9
- - 0
10
- version: 0.8.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.1
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jeremy Weiskotten
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-03-06 00:00:00 -05:00
12
+ date: 2011-09-26 00:00:00.000000000 -04:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: crack
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2153577060 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 11
30
- segments:
31
- - 0
32
- - 1
33
- - 8
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
34
22
  version: 0.1.8
35
- type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: httparty
23
+ type: :runtime
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2153577060
26
+ - !ruby/object:Gem::Dependency
27
+ name: httparty
28
+ requirement: &2153576540 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 5
46
- segments:
47
- - 0
48
- - 6
49
- - 1
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
50
33
  version: 0.6.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *2153576540
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake
39
+ requirement: &2153576160 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
51
45
  type: :development
52
- version_requirements: *id002
46
+ prerelease: false
47
+ version_requirements: *2153576160
48
+ - !ruby/object:Gem::Dependency
49
+ name: test-unit
50
+ requirement: &2153575700 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *2153575700
53
59
  description: A Ruby wrapper for the Dribbble API
54
- email: jeremy@weiskotten.com
60
+ email:
61
+ - jeremy@weiskotten.com
55
62
  executables: []
56
-
57
63
  extensions: []
58
-
59
- extra_rdoc_files:
60
- - LICENSE
61
- - README.rdoc
62
- files:
64
+ extra_rdoc_files: []
65
+ files:
63
66
  - .document
67
+ - .gitignore
68
+ - Gemfile
69
+ - Gemfile.lock
64
70
  - LICENSE
65
71
  - README.rdoc
66
72
  - Rakefile
67
- - VERSION
68
73
  - lib/dribbble/base.rb
69
74
  - lib/dribbble/comment.rb
70
75
  - lib/dribbble/paginated_list.rb
71
76
  - lib/dribbble/player.rb
72
77
  - lib/dribbble/shot.rb
78
+ - lib/dribbble/version.rb
73
79
  - lib/swish.rb
74
80
  - swish.gemspec
75
81
  - test/base_test.rb
@@ -79,40 +85,31 @@ files:
79
85
  - test/player_test.rb
80
86
  - test/shot_test.rb
81
87
  has_rdoc: true
82
- homepage: http://github.com/jeremyw/swish
88
+ homepage: https://github.com/jeremyw/swish
83
89
  licenses: []
84
-
85
90
  post_install_message:
86
91
  rdoc_options: []
87
-
88
- require_paths:
92
+ require_paths:
89
93
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
94
+ required_ruby_version: !ruby/object:Gem::Requirement
91
95
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
108
106
  requirements: []
109
-
110
107
  rubyforge_project:
111
- rubygems_version: 1.3.7
108
+ rubygems_version: 1.6.2
112
109
  signing_key:
113
110
  specification_version: 3
114
111
  summary: A Ruby wrapper for the Dribbble API
115
- test_files:
112
+ test_files:
116
113
  - test/base_test.rb
117
114
  - test/comment_test.rb
118
115
  - test/helper.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.8.0