newclear 1.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: 5360373b47b8b7e37292a311e0eb6c867eb0fc13
4
- data.tar.gz: 3e04c27c9e2a051cf6d070186552108c059b8de1
3
+ metadata.gz: 4fa5a7ea3a684e3b794fed2a473804b2dd38139e
4
+ data.tar.gz: abd84b1183814b04529bac1759f4a6a0f1383ff9
5
5
  SHA512:
6
- metadata.gz: 233df04279cfb836eb6b98476772f2cff882e0945a5761e346944e3e2c1274850fe1b9acf110737d55c86b48c6cf621e68e01c0654650f3af35073da1b08abe6
7
- data.tar.gz: 19efc84206438eec7fcf3b9dadbc2539d5848dcfafcb6bcb50d2c71b2ddb49ebabbd696d67ee1358050469d610ee02e11b74ef61cb68a5a3eb5c0c5ee26ecd0a
6
+ metadata.gz: 6c914d5650a7be556d7655eedc5b19375b6358b364794ace0f9f3d6fca423ae901b34c6aef7859ef0baa6fd85fc6c3c53bc9b5be0feef6bf62bb3f113ebd829e
7
+ data.tar.gz: d10adb7e809d7f18502ecbaf5ccba7e4dc2e4110e9cfaa00fd5eb1cb8136eb70ebf919f69f258f863cca7ed3a07f84e41eb1f8d393ec59f2d7cebaf21f7a7e4d
data/README.md CHANGED
@@ -1,30 +1,40 @@
1
- ![newclear gem logo](http://i.imgur.com/9zP1VGD.png)
1
+ ![newclear gem logo](http://i.imgur.com/9zP1VGD.png)
2
2
 
3
- **newclear gem** - Your one line and relax solution to a ground up rebuild of your iOS or Android RubyMotion app.
3
+ **newclear** [![Gem Version](https://badge.fury.io/rb/newclear.svg)](http://badge.fury.io/rb/newclear) - Your one line and relax solution to a ground up rebuild of your iOS or Android RubyMotion app.
4
4
 
5
5
  ## Why?
6
- Sometimes a build gets _FUBAR_. When you run `rake newclear` it builds your project from the ground up without you having to interact at each step in the rebuild process. _Just type and chillax._
6
+ Sometimes a build gets _FUBAR_. When you run `rake newclear` it builds your project from the ground up without you having to interact at each step in the rebuild process. _Just type and chillax._ **We simplify the clean-up to a memorable and automated task.**
7
7
 
8
8
  ## Usage
9
- **newclear** comes with 3 helpful rake tasks.
9
+ **newclear** comes with 4 helpful rake tasks _but..._
10
+ **99% of the time you want to run** `rake newclear`. The other rake tasks are sometimes helpful and credited in order of importance.
10
11
 
11
- #### nuke
12
- `[bundle exec] rake nuke`
12
+ ### :crown: `[bundle exec] rake newclear`
13
13
 
14
- `nuke` clears everything from previous builds and fetches fresh resources in the correct order. This is excellent for tests.
14
+ The most common and useful command. `newclear` gives you a new and clear run of your build. All assets cleaned out and then built in the correct order! This is great for kicking off the rebuild to clear any cruft that might be crashing your app.
15
15
 
16
- #### newclear
17
- `[bundle exec] rake newclear`
16
+ This runs our `nuke` task and then `rake` (`rake device` for android if you have no emulator running). Ergo, anything run with newclear is like running on a fresh machine.
18
17
 
19
- `newclear` gives you a new and clear run of your build. This runs `nuke` and then `rake` (`rake device` for android if you have no emulator running). This is great for kicking off the rebuild to clear any cruft that might be crashing your app.
18
+ #### `[bundle exec] rake newb`
20
19
 
21
- #### newclear:debug
22
- `[bundle exec] rake newclear:debug`
20
+ Sometimes helpful, `newb` gives you a new build of your app. This is excellent for clearing out data before a test, or making sure your application is built in the correct order.
21
+
22
+ This runs our `nuke` task and then `rake build`.
23
+
24
+ #### `[bundle exec] rake nuke`
25
+
26
+ Useful for preparing the build, the `nuke` task clears everything from previous builds and fetches fresh resources in the correct order. After a nuke, you can be sure that your next build is ready to go.
27
+
28
+ This will start off with a complete `rake clean:all` which removes all compiled builds. We then do a speedy `bundle install` (3 jobs) as your RM resources must be in place before any 3rd party dependencies. Lastly, we verify if you're using pods/gradle and install dependencies appropriately.
29
+
30
+ #### `[bundle exec] rake newclear:debug`
23
31
 
24
32
  `newclear:debug` gives you the detected parameters of your setup. If you have _any_ complication with newclear, be sure to use this to makes sure newclear is detecing your system setup correctly.
25
33
 
26
- #### How does it work?
27
- If you want to trace the logic, here's what the command does:
34
+ ### How does it all work?
35
+ ![nuke](http://i.imgur.com/YBP2UEh.gif)
36
+
37
+ Just kidding. If you want to trace the logic, here you go!
28
38
  ![newclear logic tree](./_art/newclear_flow_chart.png)
29
39
 
30
40
  ## Install
@@ -50,5 +60,6 @@ We're using Rickert's lovely `reset-sim` gem in our nuke. So be sure to have a
50
60
  2. Create your feature branch (`git checkout -b my-new-feature`)
51
61
  3. Commit your changes (`git commit -am 'Add some feature'`)
52
62
  4. Push to the branch (`git push origin my-new-feature`)
53
- 5. Hula hoop and down a beer in under a minute.
54
- 6. Create new Pull Request
63
+ 5. Update the flow-chart if applicable [Flow-Chart](https://docs.google.com/drawings/d/1U7gq40TGMi5t8DkBAEfOB57SnjkfiKTRCUdfRtTAaWo/edit?usp=sharing)
64
+ 6. Hula hoop and down a beer in under a minute.
65
+ 7. Create new Pull Request
@@ -7,13 +7,6 @@ end
7
7
  require_relative "newclear_helper"
8
8
  include NewclearHelper
9
9
 
10
-
11
- desc "Completely resets everything for your project"
12
- task :nuke do
13
- nuke_project
14
- puts NewclearHelper::NUKE_MESSAGE
15
- end
16
-
17
10
  desc "Completely reset everything in project and run"
18
11
  task :newclear do
19
12
  # out with the old
@@ -22,10 +15,22 @@ task :newclear do
22
15
  build_project
23
16
  end
24
17
 
18
+ desc "Completely reset everything in project and create a build"
19
+ task :newb do
20
+ nuke_project
21
+ `rake build`
22
+ end
23
+
24
+ desc "Completely resets everything for your project"
25
+ task :nuke do
26
+ nuke_project
27
+ puts NewclearHelper::NUKE_MESSAGE
28
+ end
29
+
25
30
  namespace :newclear do
26
31
  desc "Print out newclear detected settings"
27
32
  task :debug do
28
- puts "If any of these are off, newclearr will not work correctly"
33
+ puts "If any of these are off, newclear will not work correctly"
29
34
  puts "***" * 20
30
35
  puts "Is Android? = #{is_android?}"
31
36
  puts "Running Genymotion? = #{running_genymotion?}"
@@ -15,8 +15,9 @@ module NewclearHelper
15
15
  `reset-sim`
16
16
  end
17
17
 
18
+ # Fast bundle
18
19
  puts "\nBundling..."
19
- `bundle install`
20
+ `bundle install --jobs=3 --retry=3`
20
21
 
21
22
  # iOS Depencies
22
23
  if has_task? "pod:install"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newclear
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gant
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reset-sim