ror 0.2.3 → 0.2.4

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: 7d5362862c47288a5f2b456954311c565573e609b31772277cbce00e3434c32b
4
- data.tar.gz: 908a2c810654735a68404ce1ea73c06dfe4c08e8e865b52f22a5c1b2d0048f53
3
+ metadata.gz: 2efc0ef90d8a5073f24eb9d78978005c20449f5e14133a6fb0dcd7379cef5b51
4
+ data.tar.gz: 659594a97044ee200e20bbc4273b3410c9323df1b45e50990a09c899d2409405
5
5
  SHA512:
6
- metadata.gz: f0d6357bb2e6d4f2d8e89c93db20dceddb02f4fab1ee88a101366800d4e740c1c33556e21bba636f71156198dc1a240a0d793b74271b019eebc43ebf0d1b1a76
7
- data.tar.gz: d8927aa3dec833320ca83ed3262653568a5f2fcd46df67b1c5f1f418f60ffe9d66a0d07038375490315c52c84dccba7ed37a55cc805c794c800f22c1de43f21d
6
+ metadata.gz: 7d11bf3b210b0c8ab6f2de99475dfd6ca447f1ec79f236b23ee215186b2284a58c40c3067c41947954ffb657e499832017085aa388c35ee6be560b17f9748e2f
7
+ data.tar.gz: 329a50ba4df5cfd43972af8735ff92f4e03d87a35466d845179d26b31d9c7b497761f7b3374731f14aecbe2275923c12bafe55022c2b05e0fcb2e5b3751484b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ror (0.2.2)
4
+ ror (0.2.3)
5
5
  rails (~> 7.0)
6
6
  thor (~> 1.2, >= 1.2.1)
7
7
 
data/lib/ror/cli.rb CHANGED
@@ -1,10 +1,11 @@
1
1
  require 'thor'
2
+ require 'ror/generators/init'
2
3
 
3
4
  module Ror
4
5
  class CLI < Thor
5
6
  desc "init", "Initialize new project"
6
7
  def init
7
- # TODO: implement new project initialization
8
+ Ror::Generators::Init.start
8
9
  end
9
10
 
10
11
  desc "new APP_PATH", "Create new application at APP_PATH"
@@ -14,6 +15,7 @@ module Ror
14
15
 
15
16
  desc "version", "Show current version"
16
17
  def version
18
+ # BIRD: `version': uninitialized constant Ror::VERSION (NameError)
17
19
  puts "Ror version " + Ror::VERSION
18
20
  end
19
21
  end
@@ -0,0 +1,23 @@
1
+ require 'thor/group'
2
+
3
+ module Ror
4
+ module Generators
5
+ class Init < Thor::Group
6
+ include Thor::Actions
7
+
8
+ ROR_DIR = '.ror'.freeze
9
+
10
+ def self.source_root
11
+ File.dirname(__FILE__) + "/templates"
12
+ end
13
+
14
+ def create_ror_dir
15
+ empty_directory(ROR_DIR)
16
+ end
17
+
18
+ def copy_rorfile
19
+ template("Rorfile.erb", "#{ROR_DIR}/Rorfile")
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ ### Rorfile ###
2
+
3
+ Created at <%= 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.2.3"
4
+ VERSION = "0.2.4"
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Roman
@@ -85,6 +85,8 @@ files:
85
85
  - exe/ror
86
86
  - lib/ror.rb
87
87
  - lib/ror/cli.rb
88
+ - lib/ror/generators/init.rb
89
+ - lib/ror/generators/templates/Rorfile.erb
88
90
  - lib/ror/version.rb
89
91
  - nix/sources.json
90
92
  - nix/sources.nix