ror 0.3.0 → 0.3.3

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
  SHA256:
3
- metadata.gz: 9cdf588c9de534d6ae6fdfc6c2dd6d5a0db9e0f5de82e1bb699d8651bfb340f0
4
- data.tar.gz: a36315735358c60affeef609edf874bb1ecd014bbe899107c78de19f6a714b76
3
+ metadata.gz: 1809721ee8c4c17da03773f60fd8787a387298f6d6c6773771ac1c50ce7b8de9
4
+ data.tar.gz: 3b99d0939cbc0977a5f240d719b66241382e8ebaa9f244440235120f2a8f3696
5
5
  SHA512:
6
- metadata.gz: 57a244c00b7a53b1b4b6e714d339c9c315de5a5e1c9bf832dee72c1e4fa08acacbc04dbe6b41180965be8c568be367c9fcf426da86b39d5839a4c8802e976cd9
7
- data.tar.gz: 6918e0ec6d5298507bae18d63e09f279e87c3d2b31fcc8b34450be2d1c21627f4b26ce7a12d77b02a553fae82ae34a3a39fab6538ba60aec2d2fa9ff61fca279
6
+ metadata.gz: 6b177793c9b4c732c3b1c31f85f1717b52c3891bafc1fff5264158a92437cd81ca6058b8c6bdc84b44b6ea1a85e85f4ac51082c2e736a453c07f41de723d0aff
7
+ data.tar.gz: 12b3ef41f87e38c17916c8ccbec8aab218d7ffd04fffa97cb89c64fac8a13614f668f74ec33f4e3ce5627aa86d56e9c06aba9e14174be9554a064757e17e47a1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ror (0.3.0)
4
+ ror (0.3.3)
5
5
  rails (~> 7.0)
6
6
  thor (~> 1.2, >= 1.2.1)
7
7
 
data/lib/ror/cli.rb CHANGED
@@ -1,16 +1,17 @@
1
1
  require 'thor'
2
+ require "rails/command"
2
3
  require 'ror/generators/new'
3
4
 
4
5
  module Ror
5
6
  class CLI < Thor
6
- desc "new", "Generate new Rorfile"
7
- def new
8
- Ror::Generators::New.start
7
+ desc "init", "Initialize new project"
8
+ def init
9
+ Ror::Generators::Init.start
9
10
  end
10
11
 
11
- desc "create", "Create ror application"
12
+ desc "create", "Create new application"
12
13
  def create
13
- # TODO: implement application creation
14
+ Rails::Command.invoke :application, ["new", "."]
14
15
  end
15
16
 
16
17
  desc "version", "Show current version"
@@ -2,7 +2,7 @@ require 'thor/group'
2
2
 
3
3
  module Ror
4
4
  module Generators
5
- class New < Thor::Group
5
+ class Init < Thor::Group
6
6
  include Thor::Actions
7
7
 
8
8
  ROR_DIR = '.ror'.freeze
@@ -16,7 +16,11 @@ module Ror
16
16
  end
17
17
 
18
18
  def copy_rorfile
19
- template("Rorfile.erb", "#{ROR_DIR}/Rorfile")
19
+ template("Rorfile.tt", "#{ROR_DIR}/Rorfile")
20
+ end
21
+
22
+ def copy_rorrcfile
23
+ template("rorrc.tt", "#{ROR_DIR}/.rorrc")
20
24
  end
21
25
  end
22
26
  end
@@ -0,0 +1 @@
1
+ <%= Time.now.utc %>
data/lib/ror/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ror
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Roman
@@ -64,7 +64,7 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '7.0'
67
- description: Ror is a declarative configuration framework for Ruby on Rails.
67
+ description: Ror is a declarative configuration framework on Ruby on Rails.
68
68
  email:
69
69
  - tonyromnet@gmail.com
70
70
  executables:
@@ -85,8 +85,9 @@ files:
85
85
  - exe/ror
86
86
  - lib/ror.rb
87
87
  - lib/ror/cli.rb
88
- - lib/ror/generators/new.rb
89
- - lib/ror/generators/templates/Rorfile.erb
88
+ - lib/ror/generators/init.rb
89
+ - lib/ror/generators/templates/Rorfile.tt
90
+ - lib/ror/generators/templates/rorrc.tt
90
91
  - lib/ror/version.rb
91
92
  - nix/sources.json
92
93
  - nix/sources.nix