billymeltdown-twitter 0.3.8.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/spec/search_spec.rb CHANGED
@@ -49,6 +49,10 @@ describe Twitter::Search do
49
49
  @search.per_page(25).query[:rpp].should == 25
50
50
  end
51
51
 
52
+ it "should be able to specify the page number" do
53
+ @search.page(20).query[:page].should == 20
54
+ end
55
+
52
56
  it "should be able to specify only returning results greater than an id" do
53
57
  @search.since(1234).query[:since_id].should == 1234
54
58
  end
@@ -73,7 +77,7 @@ describe Twitter::Search do
73
77
 
74
78
  describe "fetching" do
75
79
  before do
76
- @response = open(File.dirname(__FILE__) + '/fixtures/friends_timeline.xml').read
80
+ @response = YAML.load_file(File.dirname(__FILE__) + '/fixtures/search_result_info.yml')
77
81
  @search.class.stub!(:get).and_return(@response)
78
82
  end
79
83
 
@@ -81,6 +85,13 @@ describe Twitter::Search do
81
85
  @search.class.should_receive(:get).and_return(@response)
82
86
  @search.from('jnunemaker').fetch().should == @response
83
87
  end
88
+
89
+ it "should support dot notation" do
90
+ @search.class.should_receive(:get).and_return(@response)
91
+ info = @search.from('httparty').fetch()
92
+ info["max_id"].should == info.max_id
93
+ info["results"].first["text"].should == info.results.first.text
94
+ end
84
95
  end
85
96
 
86
97
  it "should be able to iterate over results" do
data/spec/spec_helper.rb CHANGED
@@ -9,4 +9,15 @@ end
9
9
  dir = File.dirname(__FILE__)
10
10
 
11
11
  $:.unshift(File.join(dir, '/../lib/'))
12
- require dir + '/../lib/twitter'
12
+ require dir + '/../lib/twitter'
13
+
14
+
15
+ def stdout_for(&block)
16
+ # Inspired by http://www.ruby-forum.com/topic/58647
17
+ old_stdout = $stdout
18
+ $stdout = StringIO.new
19
+ yield
20
+ output = $stdout.string
21
+ $stdout = old_stdout
22
+ output
23
+ end
data/twitter.gemspec CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{twitter}
5
- s.version = "0.3.8.1"
5
+ s.version = "0.4.2"
6
6
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
9
- s.date = %q{2008-12-13}
9
+ s.date = %q{2009-02-11}
10
10
  s.default_executable = %q{twitter}
11
11
  s.description = %q{a command line interface for twitter, also a library which wraps the twitter api}
12
12
  s.email = %q{nunemaker@gmail.com}
13
13
  s.executables = ["twitter"]
14
- s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt"]
15
- s.files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/twitter", "config/hoe.rb", "config/requirements.rb", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "lib/twitter.rb", "lib/twitter/base.rb", "lib/twitter/cli.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/followers.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "tasks/deployment.rake", "tasks/environment.rake", "tasks/website.rake", "twitter.gemspec", "website/css/common.css", "website/images/terminal_output.png", "website/index.html"]
14
+ s.extra_rdoc_files = ["bin/twitter", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/search_result.rb", "lib/twitter/search_result_info.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "README"]
15
+ s.files = ["bin/twitter", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "History", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/search_result.rb", "lib/twitter/search_result_info.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "License", "Manifest", "Rakefile", "README", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/follower_ids.xml", "spec/fixtures/followers.xml", "spec/fixtures/friend_ids.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/friendship_already_exists.xml", "spec/fixtures/friendship_created.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_result_info.yml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "twitter.gemspec", "website/css/common.css", "website/images/terminal_output.png", "website/index.html"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://twitter.rubyforge.org}
18
- s.rdoc_options = ["--main", "README.txt"]
18
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Twitter", "--main", "README"]
19
19
  s.require_paths = ["lib"]
20
20
  s.rubyforge_project = %q{twitter}
21
21
  s.rubygems_version = %q{1.3.1}
@@ -28,27 +28,18 @@ Gem::Specification.new do |s|
28
28
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
29
29
  s.add_runtime_dependency(%q<hpricot>, [">= 0.6"])
30
30
  s.add_runtime_dependency(%q<activesupport>, [">= 2.1"])
31
- s.add_runtime_dependency(%q<main>, [">= 2.8.2"])
32
- s.add_runtime_dependency(%q<highline>, [">= 1.4.0"])
33
- s.add_runtime_dependency(%q<activerecord>, [">= 2.1"])
34
- s.add_runtime_dependency(%q<httparty>, [">= 0.1.0"])
35
- s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
31
+ s.add_runtime_dependency(%q<httparty>, [">= 0.2.4"])
32
+ s.add_development_dependency(%q<echoe>, [">= 0"])
36
33
  else
37
34
  s.add_dependency(%q<hpricot>, [">= 0.6"])
38
35
  s.add_dependency(%q<activesupport>, [">= 2.1"])
39
- s.add_dependency(%q<main>, [">= 2.8.2"])
40
- s.add_dependency(%q<highline>, [">= 1.4.0"])
41
- s.add_dependency(%q<activerecord>, [">= 2.1"])
42
- s.add_dependency(%q<httparty>, [">= 0.1.0"])
43
- s.add_dependency(%q<hoe>, [">= 1.8.0"])
36
+ s.add_dependency(%q<httparty>, [">= 0.2.4"])
37
+ s.add_dependency(%q<echoe>, [">= 0"])
44
38
  end
45
39
  else
46
40
  s.add_dependency(%q<hpricot>, [">= 0.6"])
47
41
  s.add_dependency(%q<activesupport>, [">= 2.1"])
48
- s.add_dependency(%q<main>, [">= 2.8.2"])
49
- s.add_dependency(%q<highline>, [">= 1.4.0"])
50
- s.add_dependency(%q<activerecord>, [">= 2.1"])
51
- s.add_dependency(%q<httparty>, [">= 0.1.0"])
52
- s.add_dependency(%q<hoe>, [">= 1.8.0"])
42
+ s.add_dependency(%q<httparty>, [">= 0.2.4"])
43
+ s.add_dependency(%q<echoe>, [">= 0"])
53
44
  end
54
- end
45
+ end
data/website/index.html CHANGED
@@ -87,7 +87,10 @@ Twitter::Search.new.from('jnunemaker').to('oaknd1').fetch()
87
87
 
88
88
  <p><img src="images/terminal_output.png" alt="Terminal Output" style="width:560px;" /></p>
89
89
 
90
- <p><strong>Note: If you want to use twitter from the command line be sure that sqlite3 and the sqlite3-ruby gem are installed.</strong> I removed the sqlite3-ruby gem as a dependency because you shouldn't need that to just use the API wrapper. Eventually I'll move the CLI interface into another gem.</p>
90
+ <p>I removed the command line dependencies from the gem dependencies list so if you want to use the command line part of the twitter gem be sure to install the following gems as well.</p>
91
+
92
+ <pre><code>$ sudo gem install main highline sqlite3-ruby
93
+ $ sudo gem install activerecord -v 2.2.2</code></pre>
91
94
 
92
95
  <p>The first thing you'll want to do is install the database so your account(s) can be stored.</p>
93
96
 
@@ -127,18 +130,6 @@ Account List
127
130
 
128
131
  <h2>Support</h2>
129
132
  <p>Conversations welcome in the <a href="http://groups.google.com/group/ruby-twitter-gem">google group</a> and bugs/features over at <a href="http://jnunemaker.lighthouseapp.com/projects/14843-twitter-gem/overview">lighthouse</a></p>
130
-
131
- <h2>Uses</h2>
132
- <ul>
133
- <li><a href="http://snitch.rubyforge.org">Snitch</a></li>
134
- <li><a href="http://al3x.net/entries/766">Growl + Twitter</a></li>
135
- <li><a href="http://snippets.dzone.com/posts/show/3714">Twitter Woot Bot</a> (<a href="http://soylentfoo.jnewland.com/articles/2007/03/22/woot-twitter-bot-now-official">more here</a>)</li>
136
- <li><a href="http://soylentfoo.jnewland.com/articles/2007/01/22/tweet-update-twitter-via-quicksilver">Tweet Quicksilver Action</a></li>
137
- <li><a href="http://blog.evanweaver.com/articles/2007/02/09/log-system-security-events-to-twitter">logging security events to twitter</a></li>
138
- <li><a href="http://shareomatic.com/">Shareomatic</a> is using it for their <a href="http://twitter.com/shareomatic">twitter account</a></li>
139
- </ul>
140
-
141
- <p>Using the twitter gem for something, <a href="mailto:nunemaker@gmail.com">let me know</a> and I'll add you above.</p>
142
133
  </div>
143
134
 
144
135
  <div id="footer">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billymeltdown-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-13 00:00:00 -08:00
12
+ date: 2009-02-11 00:00:00 -08:00
13
13
  default_executable: twitter
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hpricot
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,33 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: activesupport
26
- version_requirement:
27
- version_requirements: !ruby/object:Gem::Requirement
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- version: "2.1"
32
- version:
33
- - !ruby/object:Gem::Dependency
34
- name: main
35
- version_requirement:
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 2.8.2
41
- version:
42
- - !ruby/object:Gem::Dependency
43
- name: highline
44
- version_requirement:
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.4.0
50
- version:
51
- - !ruby/object:Gem::Dependency
52
- name: activerecord
27
+ type: :runtime
53
28
  version_requirement:
54
29
  version_requirements: !ruby/object:Gem::Requirement
55
30
  requirements:
@@ -59,21 +34,23 @@ dependencies:
59
34
  version:
60
35
  - !ruby/object:Gem::Dependency
61
36
  name: httparty
37
+ type: :runtime
62
38
  version_requirement:
63
39
  version_requirements: !ruby/object:Gem::Requirement
64
40
  requirements:
65
41
  - - ">="
66
42
  - !ruby/object:Gem::Version
67
- version: 0.1.0
43
+ version: 0.2.4
68
44
  version:
69
45
  - !ruby/object:Gem::Dependency
70
- name: hoe
46
+ name: echoe
47
+ type: :development
71
48
  version_requirement:
72
49
  version_requirements: !ruby/object:Gem::Requirement
73
50
  requirements:
74
51
  - - ">="
75
52
  - !ruby/object:Gem::Version
76
- version: 1.8.0
53
+ version: "0"
77
54
  version:
78
55
  description: a command line interface for twitter, also a library which wraps the twitter api
79
56
  email: nunemaker@gmail.com
@@ -82,19 +59,31 @@ executables:
82
59
  extensions: []
83
60
 
84
61
  extra_rdoc_files:
85
- - History.txt
86
- - License.txt
87
- - Manifest.txt
88
- - README.txt
62
+ - bin/twitter
63
+ - lib/twitter/base.rb
64
+ - lib/twitter/cli/config.rb
65
+ - lib/twitter/cli/helpers.rb
66
+ - lib/twitter/cli/migrations/20080722194500_create_accounts.rb
67
+ - lib/twitter/cli/migrations/20080722194508_create_tweets.rb
68
+ - lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb
69
+ - lib/twitter/cli/migrations/20080722214606_create_configurations.rb
70
+ - lib/twitter/cli/models/account.rb
71
+ - lib/twitter/cli/models/configuration.rb
72
+ - lib/twitter/cli/models/tweet.rb
73
+ - lib/twitter/cli.rb
74
+ - lib/twitter/direct_message.rb
75
+ - lib/twitter/easy_class_maker.rb
76
+ - lib/twitter/rate_limit_status.rb
77
+ - lib/twitter/search.rb
78
+ - lib/twitter/search_result.rb
79
+ - lib/twitter/search_result_info.rb
80
+ - lib/twitter/status.rb
81
+ - lib/twitter/user.rb
82
+ - lib/twitter/version.rb
83
+ - lib/twitter.rb
84
+ - README
89
85
  files:
90
- - History.txt
91
- - License.txt
92
- - Manifest.txt
93
- - README.txt
94
- - Rakefile
95
86
  - bin/twitter
96
- - config/hoe.rb
97
- - config/requirements.rb
98
87
  - examples/blocks.rb
99
88
  - examples/direct_messages.rb
100
89
  - examples/favorites.rb
@@ -109,9 +98,8 @@ files:
109
98
  - examples/timeline.rb
110
99
  - examples/twitter.rb
111
100
  - examples/verify_credentials.rb
112
- - lib/twitter.rb
101
+ - History
113
102
  - lib/twitter/base.rb
114
- - lib/twitter/cli.rb
115
103
  - lib/twitter/cli/config.rb
116
104
  - lib/twitter/cli/helpers.rb
117
105
  - lib/twitter/cli/migrations/20080722194500_create_accounts.rb
@@ -121,27 +109,36 @@ files:
121
109
  - lib/twitter/cli/models/account.rb
122
110
  - lib/twitter/cli/models/configuration.rb
123
111
  - lib/twitter/cli/models/tweet.rb
112
+ - lib/twitter/cli.rb
124
113
  - lib/twitter/direct_message.rb
125
114
  - lib/twitter/easy_class_maker.rb
126
115
  - lib/twitter/rate_limit_status.rb
127
116
  - lib/twitter/search.rb
117
+ - lib/twitter/search_result.rb
118
+ - lib/twitter/search_result_info.rb
128
119
  - lib/twitter/status.rb
129
120
  - lib/twitter/user.rb
130
121
  - lib/twitter/version.rb
131
- - script/destroy
132
- - script/generate
133
- - script/txt2html
134
- - setup.rb
122
+ - lib/twitter.rb
123
+ - License
124
+ - Manifest
125
+ - Rakefile
126
+ - README
135
127
  - spec/base_spec.rb
136
128
  - spec/cli/helper_spec.rb
137
129
  - spec/direct_message_spec.rb
130
+ - spec/fixtures/follower_ids.xml
138
131
  - spec/fixtures/followers.xml
132
+ - spec/fixtures/friend_ids.xml
139
133
  - spec/fixtures/friends.xml
140
134
  - spec/fixtures/friends_for.xml
141
135
  - spec/fixtures/friends_lite.xml
142
136
  - spec/fixtures/friends_timeline.xml
137
+ - spec/fixtures/friendship_already_exists.xml
138
+ - spec/fixtures/friendship_created.xml
143
139
  - spec/fixtures/public_timeline.xml
144
140
  - spec/fixtures/rate_limit_status.xml
141
+ - spec/fixtures/search_result_info.yml
145
142
  - spec/fixtures/search_results.json
146
143
  - spec/fixtures/status.xml
147
144
  - spec/fixtures/user.xml
@@ -151,9 +148,6 @@ files:
151
148
  - spec/spec_helper.rb
152
149
  - spec/status_spec.rb
153
150
  - spec/user_spec.rb
154
- - tasks/deployment.rake
155
- - tasks/environment.rake
156
- - tasks/website.rake
157
151
  - twitter.gemspec
158
152
  - website/css/common.css
159
153
  - website/images/terminal_output.png
@@ -162,8 +156,12 @@ has_rdoc: true
162
156
  homepage: http://twitter.rubyforge.org
163
157
  post_install_message:
164
158
  rdoc_options:
159
+ - --line-numbers
160
+ - --inline-source
161
+ - --title
162
+ - Twitter
165
163
  - --main
166
- - README.txt
164
+ - README
167
165
  require_paths:
168
166
  - lib
169
167
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -176,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
174
  requirements:
177
175
  - - ">="
178
176
  - !ruby/object:Gem::Version
179
- version: "0"
177
+ version: "1.2"
180
178
  version:
181
179
  requirements: []
182
180
 
data/config/hoe.rb DELETED
@@ -1,74 +0,0 @@
1
- require 'twitter/version'
2
-
3
- AUTHOR = "John Nunemaker" # can also be an array of Authors
4
- EMAIL = "nunemaker@gmail.com"
5
- DESCRIPTION = "a command line interface for twitter, also a library which wraps the twitter api"
6
- GEM_NAME = "twitter" # what ppl will type to install your gem
7
- RUBYFORGE_PROJECT = "twitter" # The unix name for your project
8
- HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
- RELEASE_TYPES = %w( gem ) # can use: gem, tar, zip
10
- DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
11
-
12
- @config_file = "~/.rubyforge/user-config.yml"
13
- @config = nil
14
- RUBYFORGE_USERNAME = "unknown"
15
- def rubyforge_username
16
- unless @config
17
- begin
18
- @config = YAML.load(File.read(File.expand_path(@config_file)))
19
- rescue
20
- puts <<-EOS
21
- ERROR: No rubyforge config file found: #{@config_file}
22
- Run 'rubyforge setup' to prepare your env for access to Rubyforge
23
- - See http://newgem.rubyforge.org/rubyforge.html for more details
24
- EOS
25
- exit
26
- end
27
- end
28
- RUBYFORGE_USERNAME.replace @config["username"]
29
- end
30
-
31
-
32
- REV = nil
33
- # UNCOMMENT IF REQUIRED:
34
- # REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
35
- VERS = Twitter::VERSION::STRING + (REV ? ".#{REV}" : "")
36
- RDOC_OPTS = ['--quiet', '--title', 'twitter documentation',
37
- "--opname", "index.html",
38
- "--line-numbers",
39
- "--main", "README",
40
- "--inline-source"]
41
-
42
- class Hoe
43
- def extra_deps
44
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
45
- @extra_deps
46
- end
47
- end
48
-
49
- # Generate all the Rake tasks
50
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
51
- hoe = Hoe.new(GEM_NAME, VERS) do |p|
52
- p.author = AUTHOR
53
- p.description = DESCRIPTION
54
- p.email = EMAIL
55
- p.summary = DESCRIPTION
56
- p.url = HOMEPATH
57
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
58
- p.test_globs = ["test/**/test_*.rb"]
59
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
60
-
61
- # == Optional
62
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
63
- #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
64
- p.extra_deps = [['hpricot', '>= 0.6'], ['activesupport', '>= 2.1'],
65
- ['main', '>= 2.8.2'], ['highline', '>= 1.4.0'],
66
- ['activerecord', '>= 2.1'], ['httparty', '>= 0.1.0']]
67
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
68
-
69
- end
70
-
71
- CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
72
- PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
73
- hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
74
- hoe.rsync_args = '-av --delete --ignore-errors'
@@ -1,17 +0,0 @@
1
- require 'fileutils'
2
- include FileUtils
3
-
4
- require 'rubygems'
5
- %w[rake hoe newgem rubigen].each do |req_gem|
6
- begin
7
- require req_gem
8
- rescue LoadError
9
- puts "This Rakefile requires the '#{req_gem}' RubyGem."
10
- puts "Installation: gem install #{req_gem} -y"
11
- exit
12
- end
13
- end
14
-
15
- $:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
16
-
17
- require 'twitter'
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)