powder 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 518954bb71f080193a1823a6729fdfb5357bf552
4
+ data.tar.gz: 9763d493ccdbbcecc00a368b9c6ff92949523b51
5
+ SHA512:
6
+ metadata.gz: 2fa278d9c0cbc355f13f05990d4e73bdd2c52ce7ec21d766a7b2a215f8db87251c19792adb99604a5b436b3c7a7fd20b32fd7796cef607164f91f7e2b0f37d88
7
+ data.tar.gz: 9c362b1e168558caf23b4db1c5ad8212a2f6f4a0909f2d7d73626827f37041f7bdc5c994ba1c782ba2c1daf26a48ceb14d84f948bec07c6ebb3938cd0e587366
@@ -1,4 +1,48 @@
1
- ### 0.1.7 ###
1
+ ### 0.2.0 / 2013-03-12 ###
2
+
3
+ * 7 minor change
4
+
5
+ * fix debug command: rdebug connection errors
6
+ ([commit](https://github.com/Rodreegez/powder/commit/3ea0a1bc68bd9517e5673cc64d8bf25f41a5e2de))
7
+
8
+ * fix debug command: prepend newline to rdebug.rb require
9
+ ([commit](https://github.com/Rodreegez/powder/commit/cd2e72524c3d91fcddc9b4a5b5420757c959f411))
10
+
11
+ * adds 2 aliases: powder up(start) & powder down(stop)
12
+ ([commit](https://github.com/Rodreegez/powder/commit/54cdee5f6f2832d118995f28f28f4a03048c2ae6))
13
+
14
+ * adds open command
15
+ ([commit](https://github.com/Rodreegez/powder/commit/542df46b2fc08b1784280bac0de02d7e662c35c3))
16
+
17
+ * Fixed 'powder list' to display proxy ports.
18
+ ([commit](https://github.com/Rodreegez/powder/commit/804b78b844b73c2349a151e6df7f534a7d98c379))
19
+
20
+ * Pow config and status tasks to use localhost:20559
21
+ ([commit](https://github.com/Rodreegez/powder/commit/a2395157e30863af9d8d856a6dbb97b851d445b4))
22
+
23
+ * Manage Pow environment with powder
24
+ ([commit](https://github.com/Rodreegez/powder/commit/5b60045127dc72c1fb3b663a97eb4f5e238d4042))
25
+
26
+ ### 0.1.8 / 2012-06-09 ###
27
+
28
+ * 5 minor changes
29
+
30
+ * Added support for opening app with appname.x.x.x.x.xip.io
31
+ ([commit](https://github.com/Rodreegez/powder/commit/8d2b5641cc79d238edf19350fc74fdac1ad3221d))
32
+
33
+ * Support port mapping in pow 0.4
34
+ ([commit](https://github.com/Rodreegez/powder/commit/d079999fd9b08237835c1c4b373067ad87b19cc3))
35
+
36
+ * add respawn command
37
+ ([commit](https://github.com/rodreegez/powder/commit/e7da3776233d1062335dd5e5d7ee15a3a9e7de0a))
38
+
39
+ * Fix typo in message for generating basic config.ru in legacy apps
40
+ ([commit](https://github.com/rodreegez/powder/commit/2dd3de86d41d0df2b2b1444e9f6526916360fca5))
41
+
42
+ * add a man page
43
+ ([commit](https://github.com/rodreegez/powder/commit/64e6a0cc38184a8ac0dc80d95947d185f2bdd432))
44
+
45
+ ### 0.1.7 / 2011-11-02 ###
2
46
 
3
47
  * 1 minor change
4
48
 
data/Readme.md CHANGED
@@ -115,7 +115,7 @@ powder manages [pow](http://pow.cx/)
115
115
  # Pow reads environment varialbles from .powenv
116
116
 
117
117
  $ powder env_reset
118
- => Deletes your .powevn, removing all custom environment variables.
118
+ => Deletes your .powenv, removing all custom environment variables.
119
119
 
120
120
  $ powder env BACON chunky
121
121
  => Pass an arbitrary environment variable to pow, eg, ENV["BACON"] = "chunky"
data/bin/powder CHANGED
@@ -20,7 +20,6 @@ module Powder
20
20
  map '-d' => 'default'
21
21
  map '-o' => 'open'
22
22
  map '-v' => 'version'
23
- map 'update' => 'install'
24
23
 
25
24
  POWDER_CONFIG = ".powder"
26
25
  POW_ENV = ".powenv"
@@ -48,7 +47,7 @@ module Powder
48
47
  env("RAILS_ENV", "test")
49
48
  end
50
49
 
51
- desc "dev", "Run pow with RAILS_ENV=development"
50
+ desc "development", "Run pow with RAILS_ENV=development"
52
51
  def development
53
52
  env("RAILS_ENV", "development")
54
53
  end
@@ -124,7 +123,7 @@ module Powder
124
123
  FileUtils.ln_s(current_path, symlink_path) unless File.exists?(symlink_path)
125
124
  say "Your application is now available at http://#{name}.#{domain}/"
126
125
  else
127
- say "Pow is not installed."
126
+ say "Pow is not installed. That is, the ${HOME}/.pow symlink does not exist."
128
127
  end
129
128
  end
130
129
 
@@ -186,7 +185,7 @@ module Powder
186
185
  method_option :browser, :type => :string, :default => false, :aliases => '-b', :desc => 'browser to open with'
187
186
  method_option :xip, :type => :boolean, :default => false, :alias => '-x', :desc => "open xip.io instead of .domain"
188
187
  def open(name=nil)
189
- browser = options.browser? ? "-a \'#{options.browser}\'" : nil
188
+ browser = options.browser? ? "-a \'#{options.browser}\'" : nil
190
189
  if options.xip?
191
190
  local_ip = '0.0.0.0'
192
191
  begin
@@ -226,11 +225,14 @@ module Powder
226
225
  }
227
226
  end
228
227
 
229
- desc "install", "Installs pow"
228
+ desc "install", "Installs or updates pow"
230
229
  def install
231
230
  %x{curl get.pow.cx | sh}
232
231
  end
233
232
 
233
+ desc "update", "An alias to install"
234
+ alias :update :install
235
+
234
236
  desc "log", "Tails the Pow log"
235
237
  def log
236
238
  path_to_log_file = "#{ENV['HOME']}/Library/Logs/Pow/apps/#{current_dir_name}.log"
@@ -329,7 +331,7 @@ module Powder
329
331
  json = eval results
330
332
  json.each {|k,v| say "#{k.ljust(12, ' ')} #{v}"}
331
333
  end
332
-
334
+
333
335
  desc "portmap PORT", "Map a port to an app"
334
336
  method_option :name, :type => :string, :aliases => '-n', :desc => 'name of the port map'
335
337
  method_option :force, :type => :boolean, :default => false, :alias => '-f', :desc => "remove the old configuration, overwrite .powder"
@@ -348,6 +350,16 @@ module Powder
348
350
 
349
351
  end
350
352
 
353
+ desc "env_rvm", "Create or add rvm env to .powenv"
354
+ def env_rvm
355
+ if File.exists?(%x{pwd}.chomp + "/.rvmrc")
356
+ say %x{rvm env . -- --env >> #{POW_ENV}}
357
+ show_env
358
+ else
359
+ say ".rvmrc does not exist."
360
+ end
361
+ end
362
+
351
363
  private
352
364
 
353
365
  def powenv_exists?
@@ -443,12 +455,7 @@ module Powder
443
455
  elsif legacy = (is_rails2_app? || is_radiant_app?)
444
456
  say "This appears to be a #{legacy} application. You need a config.ru file."
445
457
  if yes? "Do you want to autogenerate a basic config.ru for #{legacy}?"
446
- uri = URI.parse("https://raw.github.com/gist/909308")
447
- http = Net::HTTP.new(uri.host, uri.port)
448
- http.use_ssl = true
449
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
450
- request = Net::HTTP::Get.new(uri.request_uri)
451
- create_file "config.ru", http.request(request).body
458
+ create_file "config.ru", get_gist("https://gist.github.com/sstephenson/909308/raw")
452
459
  return true
453
460
  else
454
461
  say "Did not create config.ru"
@@ -489,9 +496,9 @@ module Powder
489
496
  say "Its appears that the required initializer for rdebug doesn't exists in your application."
490
497
  if yes? "Do you want to create it(y/n)?"
491
498
  if yes? "This is a Rails/Radiant app(y/n)?"
492
- create_file rails_initializer, get_gist(1135055)
499
+ create_file rails_initializer, get_gist("https://gist.github.com/csiszarattila/1135055/raw")
493
500
  else
494
- create_file rack_initializer, get_gist(1262647)
501
+ create_file rack_initializer, get_gist("https://gist.github.com/csiszarattila/1262647/raw")
495
502
  append_to_file 'config.ru', "\nrequire 'rdebug.rb'"
496
503
  end
497
504
  restart
@@ -501,8 +508,8 @@ module Powder
501
508
  end
502
509
  end
503
510
 
504
- def get_gist(id)
505
- uri = URI.parse("https://raw.github.com/gist/#{id}")
511
+ def get_gist(url)
512
+ uri = URI.parse(url)
506
513
  http = Net::HTTP.new(uri.host, uri.port)
507
514
  http.use_ssl = true
508
515
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
@@ -1,3 +1,3 @@
1
1
  module Powder
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -192,7 +192,7 @@ For both forms of link, if the current directory doesn\'t look like an app that
192
192
  \fB$ powder env\fR => Displays your current custom pow environment variables # Pow reads environment varialbles from \.powenv
193
193
  .
194
194
  .P
195
- \fB$ powder env_reset\fR => Deletes your \.powevn, removing all custom environment variables\.
195
+ \fB$ powder env_reset\fR => Deletes your \.powenv, removing all custom environment variables\.
196
196
  .
197
197
  .P
198
198
  \fB$ powder env BACON chunky\fR => Pass an arbitrary environment variable to pow, eg, ENV["BACON"] = "chunky" # Remove an ENV by passing in no value, eg: powder env BACON # If you already have a \.gitignore, the newly created \.powenv will also be ignored automatically\.
@@ -199,7 +199,7 @@ a basic <strong>config.ru</strong> for Rails 2</p>
199
199
  # Pow reads environment varialbles from .powenv</p>
200
200
 
201
201
  <p> <code>$ powder env_reset</code>
202
- => Deletes your .powevn, removing all custom environment variables.</p>
202
+ => Deletes your .powenv, removing all custom environment variables.</p>
203
203
 
204
204
  <p> <code>$ powder env BACON chunky</code>
205
205
  => Pass an arbitrary environment variable to pow, eg, ENV["BACON"] = "chunky"
@@ -128,7 +128,7 @@ a basic **config.ru** for Rails 2
128
128
  # Pow reads environment varialbles from .powenv
129
129
 
130
130
  `$ powder env_reset`
131
- => Deletes your .powevn, removing all custom environment variables.
131
+ => Deletes your .powenv, removing all custom environment variables.
132
132
 
133
133
  `$ powder env BACON chunky`
134
134
  => Pass an arbitrary environment variable to pow, eg, ENV["BACON"] = "chunky"
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: powder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Phil Nash
@@ -10,38 +9,34 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-12 00:00:00.000000000 Z
12
+ date: 2014-02-06 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: thor
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 0.11.5
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: 0.11.5
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rake
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  description: Makes Pow even easier. I mean really, really, ridiculously easy.
@@ -67,27 +62,26 @@ files:
67
62
  - powder.gemspec
68
63
  homepage: http://github.com/Rodreegez/powder
69
64
  licenses: []
65
+ metadata: {}
70
66
  post_install_message:
71
67
  rdoc_options: []
72
68
  require_paths:
73
69
  - lib
74
70
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
71
  requirements:
77
- - - ! '>='
72
+ - - '>='
78
73
  - !ruby/object:Gem::Version
79
74
  version: '0'
80
75
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
76
  requirements:
83
- - - ! '>='
77
+ - - '>='
84
78
  - !ruby/object:Gem::Version
85
79
  version: '0'
86
80
  requirements: []
87
81
  rubyforge_project: powder
88
- rubygems_version: 1.8.23
82
+ rubygems_version: 2.0.3
89
83
  signing_key:
90
- specification_version: 3
84
+ specification_version: 4
91
85
  summary: Makes Pow even easier
92
86
  test_files: []
93
87
  has_rdoc: