pushie 0.1.0 → 0.1.1

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: d74c0e0f9a99becad07680f4f86950df4690cb63
4
- data.tar.gz: 0507b5d3614936cc9f99b49d6d58afa3e5c1d864
3
+ metadata.gz: 3d1ac6d13409cb22f838c4e7a23fad72d037a230
4
+ data.tar.gz: 12e2709d62f4bb02db60e2563122cdac7aa24487
5
5
  SHA512:
6
- metadata.gz: 16acf363af226ffddc879cea11945b14d03c6f5d5d8fc41bcc3f674e2872aaa4e01a1041d166911bb3495d17651e4fb7f5484a7e0007777b17a3be79f4ececf8
7
- data.tar.gz: f4a1a255e1d35ac2bb07b6a5a1b1d6d8aa97c9628bd523dc6762a2102f5b44ca62fca802fa172b966f02f983fe37541a1c3f941c954870b49d975ef3f5a92b67
6
+ metadata.gz: 0eff39894fcd2d1f1ade2ccf0d0ac6a3242c9464ab6a86b39991e0c871cac4beb1d71a53cf6ee456e8bf386096c9f406341d110dcb7886c7f5c88bf821d1b4ff
7
+ data.tar.gz: e2b0dcc8e632d19a47bb16e9aa81f96d780c1a66ec33bdfde5b7c4c24d5d0cef83eeef70a0868d16231505d8fad1a6cbddc148323745c90d661496e04786d48c
data/README.md CHANGED
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pushie. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/samsarge/pushie. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
36
 
37
37
 
38
38
  ## License
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
-
3
+ load "./lib/tasks/push.rake"
4
4
  RSpec::Core::RakeTask.new(:spec)
5
-
6
5
  task :default => :spec
@@ -1,10 +1,8 @@
1
1
  require "pushie/version"
2
-
3
2
  module Pushie
3
+ # require "/lib/pushie/railtie" if defined?(Rails)
4
+ require 'pushie/railtie' if defined?(Rails)
4
5
  def author
5
6
  "samsarge@hotmail.co.uk"
6
7
  end
7
- end
8
-
9
- # Other code goes here, like if you want to add code to another place
10
- # (like if you want to add code to RSpec)
8
+ end
@@ -0,0 +1,12 @@
1
+ require 'pushie'
2
+ require 'rails'
3
+
4
+ module Pushie
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :pushie
7
+
8
+ rake_tasks do
9
+ load 'tasks/push.rake'
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Pushie
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,15 @@
1
+ desc 'Run all the processes for pushing to production'
2
+ namespace :pushie do
3
+
4
+ task :ready do
5
+ system("bundle exec rake assets:clobber RAILS_ENV=production")
6
+ puts "\nAssets have been clobbered for production\n\n"
7
+ system("bundle exec rake assets:precompile RAILS_ENV=production")
8
+ puts "\nAssets have been preompiled for production\n\n"
9
+ end
10
+
11
+ task :push do
12
+ system("git push heroku master")
13
+ end
14
+
15
+ end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Easily manage assets when pushing to production.}
13
13
  spec.description = %q{Removes all precompiled assets with rake assets:clobber before
14
- doing a rake assets:precompile in the production environment and then pushes the content to heroku, as long as you have your app configured
14
+ doing a rake assets:precompile in the production environment and then pushes the content to Heroku, as long as you have your app configured
15
15
  with Heroku.}
16
16
  spec.homepage = "https://github.com/samsarge/Pushie"
17
17
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Sargent
@@ -68,7 +68,7 @@ dependencies:
68
68
  version: '3.0'
69
69
  description: "Removes all precompiled assets with rake assets:clobber before \n doing
70
70
  a rake assets:precompile in the production environment and then pushes the content
71
- to heroku, as long as you have your app configured\n with Heroku."
71
+ to Heroku, as long as you have your app configured\n with Heroku."
72
72
  email:
73
73
  - samsarge@hotmail.co.uk
74
74
  executables: []
@@ -88,7 +88,9 @@ files:
88
88
  - lib/generators/pushie/install.rb
89
89
  - lib/generators/pushie/templates/test/test.txt
90
90
  - lib/pushie.rb
91
+ - lib/pushie/railtie.rb
91
92
  - lib/pushie/version.rb
93
+ - lib/tasks/push.rake
92
94
  - pushie.gemspec
93
95
  homepage: https://github.com/samsarge/Pushie
94
96
  licenses: