instapusher 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71e1e9ecb3eccb2061bc78b1f45107c7cb59d4bd
4
- data.tar.gz: 0b20650b4642f5989cfb4bd7252c7d424b671f5f
3
+ metadata.gz: eb164207d44831cca82b6c868884d2e7ae3f0737
4
+ data.tar.gz: 86af2939b6515d88dae3af1bcf3f6944702eb5ff
5
5
  SHA512:
6
- metadata.gz: d80bd23f7497a9eba9bbda52414ab4ee70fab3d0f9d7cc70d353a3e52fff51b1733a23b74f4f1d9427b406883d1f9696a655db609483364d930765909693883f
7
- data.tar.gz: 7c841208d2f04d9f7c4c884c4b6bd0d17166a88070b1e49e7995bf8b71fb254586080f8b2db099cf2a5582fff237c24287d602dbde8f5a299c8d9983d51e2e19
6
+ metadata.gz: 5f45af578cf79eaed86171c6ced826d79b992256865033e9c3eb24305f293524523c0e319d14e9459a107b8ed6ba998c5c723690be243f8b4e9697626779112a
7
+ data.tar.gz: fd5321b6f9edf239d86ac0d5c1b2b622e76e8250dfc733f783610cf08fc9295e483db3c7b040dc167094fc9e24f03469dbdf0f6f30f36f02180e35fa9c967c22
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Instapusher
2
2
 
3
- Makes it easy to push to heroku.
3
+ Makes it easy to push an application to heroku.
4
4
 
5
- ## Installation
5
+ ### Installation
6
6
 
7
7
  gem install instapusher
8
8
 
@@ -11,9 +11,9 @@ Makes it easy to push to heroku.
11
11
  * Login at instapusher.com .
12
12
  * Execute `instapusher --api-key` on local machine .
13
13
 
14
- ## Usage
14
+ ### Usage
15
15
 
16
- In order to deploy your code first make sure that you are in the branch that you want to deploy.
16
+ In order to deploy your code first make sure that you are in the branch that you want to deploy.
17
17
  Then execute this command.
18
18
 
19
19
  ```
@@ -37,46 +37,16 @@ For eg. to run delayed job workers
37
37
  heroku run rake jobs:work --app my-awesome-app-42-add-devise-authentication-ip
38
38
  ```
39
39
 
40
- ## Setup Instapusher server
40
+ ### How to setup webhook
41
41
 
42
- You can provide the env variable `LOCAL` like:
42
+ ![pic](https://api.monosnap.com/image/download?id=RAcyMFB5XbHbycsptMZnanTLN3L2oi)
43
43
 
44
- instapusher --local
44
+ ### Deleting old instances
45
45
 
46
- To enable debug messages do
46
+ Heroku allows only 100 instances. Once 100 applications have been created by instapusher account then heroku does not create any new application and instapusher starts failing.
47
47
 
48
- instapusher --debug
48
+ In order to delete old instances visit the project project and then "More" > "Reached limit".
49
49
 
50
- Pass host info like this
51
-
52
- INSTAPUSHER_HOST=instapusher.com instapusher
53
-
54
- Also there are other env variables like `INSTAPUSHER_PROJECT` and `INSTAPUSHER_BRANCH`.
55
-
56
- INSTAPUSHER_HOST=instapusher.com INSTAPUSHER_PROJECT=rails INSTAPUSHER_BRANCH=master instapusher
57
-
58
- ALSO you can pass your `api_key`
59
-
60
- API_KEY=xxxx instapusher
61
-
62
- ## What problem it solves
63
-
64
- Here at BigBinary we create a separate branch for each feature we work
65
- on. Let's say that I am working on `authentication with facebook`.
66
- When I am done with the feature then I send pull request to my team
67
- members to review. However in order to review the work all the team
68
- members need to pull down the branch and fire up `rails server` and then
69
- review.
70
-
71
- We like to see things working. So we developed `instapusher` to push a
72
- feature branch to heroku instantly with one command. Executing
73
- `instapusher` prints a url and we put that url in the pull request so
74
- that team members can actually test the feature.
75
-
76
- ## Here is how it works
77
-
78
- A video is coming up.
79
-
80
- ## License
50
+ ### License
81
51
 
82
52
  `instapusher` is released under MIT License.
data/bin/instapusher CHANGED
@@ -11,19 +11,19 @@ OptionParser.new do |opts|
11
11
  options[:version] = v
12
12
  end
13
13
 
14
- opts.on("--quick", "Run quickly") do |v|
15
- options[:quick] = v
14
+ opts.on("--local", "Hit localhost:3000") do |v|
15
+ options[:local] = v
16
16
  end
17
17
 
18
- opts.on("--local", "Run locally") do |v|
19
- options[:local] = v
18
+ opts.on("--staging", "Hit instapusher.net") do |v|
19
+ options[:staging] = v
20
20
  end
21
21
 
22
22
  opts.on("--debug", "Show debug messages") do |v|
23
23
  options[:debug] = v
24
24
  end
25
25
 
26
- opts.on("--api-key", "Setup Instapusher api key") do |v|
26
+ opts.on("--api-key", "Set Instapusher api key") do |v|
27
27
  options[:api_key] = v
28
28
  end
29
29
 
@@ -46,7 +46,9 @@ module Instapusher
46
46
  def url_to_submit_job
47
47
  @url ||= begin
48
48
  hostname = if options[:local]
49
- "localhost:3000"
49
+ "localhost:3000"
50
+ elsif options[:staging]
51
+ "instapusher.net"
50
52
  else
51
53
  ENV['INSTAPUSHER_HOST'] || DEFAULT_HOSTNAME
52
54
  end
@@ -1,3 +1,3 @@
1
1
  module Instapusher
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instapusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neeraj Singh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-04 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashr