volt 0.8.16 → 0.8.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6f2cebeff308d55c2552eba413e158fc6a128a5
4
- data.tar.gz: b801ee31880a6926dcb402da887c9aaa957ba578
3
+ metadata.gz: e7e97e958515996c80730d0ab074d74eb43a27fe
4
+ data.tar.gz: 2d6e4c932e26f55dc4a225965a59cf8f5a3b0704
5
5
  SHA512:
6
- metadata.gz: c46369ca33511b29eee4fc83d5790155cfacceab89c16a69dafedc4c3fcd2b048c5ed7c72d704a98d1f5d9d533243920ccebb1807061c1f53512aee8fd3d1ca8
7
- data.tar.gz: 17fee69bdedea9ea2f9349c9b13d999e5f07cb9689c4cd8fc6ecacb261bb7a3528236bab9d2a31adf5227f2fe956947e9d0dc0aeac9eca58abf4ef13547bdd44
6
+ metadata.gz: bf7586b654567deb37578959dcbca1acd0b63edbd20685d4467b31ba7c0ef99b8512594cc372ae33fbab3111461b6151c627efe5f3f23e0a03f04aaf63159b3e
7
+ data.tar.gz: 91db170065e99364b5172228878af671875f98745841947b010f1cb589382c7506b12152e4b09d35a87cf40196256bac4a964265cf3882f36b0bb7bf341d6595
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- ## Unreleased
1
+ # Change Log
2
+
3
+ ## 0.8.17 - 2014-10-20
4
+ ### Added
5
+ - Volt now has a runner task (like rails) so you can run .rb files inside of the volt project. Example: ```volt runner lib/import.rb```
6
+
7
+ ## 0.8.16 - 2014-10-20
2
8
  ### Added
3
9
  - Change changelog format to match: http://keepachangelog.com/
4
10
  - Added rubocop config and ran rubocop on repo, lots of changes.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.16
1
+ 0.8.17
data/lib/volt/cli.rb CHANGED
@@ -65,6 +65,15 @@ module Volt
65
65
  end
66
66
  end
67
67
 
68
+ desc 'runner FILEPATH', 'Runs a ruby file at FILEPATH in the volt app'
69
+ method_option :file_path, type: :string
70
+ def runner(file_path)
71
+ ENV['SERVER'] = 'true'
72
+ require 'volt/cli/runner'
73
+
74
+ Volt::CLI::Runner.run_file(file_path)
75
+ end
76
+
68
77
  desc 'gem GEM', 'Creates a component gem where you can share a component'
69
78
  method_option :bin, type: :boolean, default: false, aliases: '-b', banner: 'Generate a binary for your library.'
70
79
  method_option :test, type: :string, lazy_default: 'rspec', aliases: '-t', banner: "Generate a test directory for your library: 'rspec' is the default, but 'minitest' is also supported."
@@ -0,0 +1,14 @@
1
+ require 'volt/boot'
2
+
3
+ module Volt
4
+ class CLI
5
+ class Runner
6
+ # Runs the ruby file at the path
7
+ def self.run_file(path)
8
+ Volt.boot(Dir.pwd)
9
+
10
+ require './' + path
11
+ end
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.16
4
+ version: 0.8.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-20 00:00:00.000000000 Z
11
+ date: 2014-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -381,6 +381,7 @@ files:
381
381
  - lib/volt/cli/asset_compile.rb
382
382
  - lib/volt/cli/generate.rb
383
383
  - lib/volt/cli/new_gem.rb
384
+ - lib/volt/cli/runner.rb
384
385
  - lib/volt/config.rb
385
386
  - lib/volt/console.rb
386
387
  - lib/volt/controllers/model_controller.rb