rapp 0.3.1 → 0.3.2

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: aa6f19d682b0a04836bbd4a2f52d4a2b02b5afb0
4
- data.tar.gz: ea1e178fa9c7512e4851d5da5208c2918c048e28
3
+ metadata.gz: 6bdc566c568f485e26e89b6465be09788d429ea8
4
+ data.tar.gz: c29995b23bee172e5bff4ee5340d53f8aa7051fb
5
5
  SHA512:
6
- metadata.gz: 883a1ebd9577503dfcdd234f3a18b884124ae391a9afa5b8ed3193c7cbf86406d687656b4d9c3b8b6de3f701f414f0ac1009cefe5c05242e2333515b2973d962
7
- data.tar.gz: 8961a5bb5a79df1066f1b12610b34de403dff7d1e930b2da5fd6fd22f32af70138538cf10763aa59a258f8d97ccf5dd5c4621928f925421d9b566294182bd572
6
+ metadata.gz: 8ce63a774d12ee84a11ad32ed96d9e894567490225137772f8b22c7774f43de6340473d08435e0137b28ec3d13d9bec12670cf19e21b5d12a0c05163d22cb182
7
+ data.tar.gz: 7c059ae8693de88b69abc6d0cfe19f5ea8d88de2651c17547a18ca4363dec2cecc849e640997c199af6bf364ae7855d4cd91f4052cb85c27c8331ac1b8f00e4a
data/lib/rapp/builder.rb CHANGED
@@ -28,17 +28,17 @@ module Rapp
28
28
  # Get name
29
29
  raise ArgumentError.new("You must provide a name") unless app_name = opts[:name]
30
30
  # Check if folder exists
31
- root_dir = "#{`pwd`.strip}/#{app_name}"
32
- raise ArgumentError.new("Directory #{root_dir} already exists") if File.directory?(root_dir)
33
-
31
+ root_dir = "#{Dir.pwd.strip}/#{app_name}"
32
+ raise ArgumentError.new("Directory #{root_dir} already exists") if File.directory?(root_dir)
33
+
34
34
  # Build the directory structure first
35
35
  Dir.mkdir(root_dir)
36
36
 
37
37
  add_directories(DirectoryStructure, app_name, root_dir)
38
-
38
+
39
39
  # Construct the data object
40
40
  template_binding = OpenStruct.new(
41
- { :name=>app_name,
41
+ { :name=>app_name,
42
42
  :class_name=>classify(app_name),
43
43
  :rapp_version=>Rapp::VERSION
44
44
  })
@@ -87,7 +87,7 @@ module Rapp
87
87
 
88
88
  # Construct the data object
89
89
  template_binding = OpenStruct.new(
90
- { :name=>app_name,
90
+ { :name=>app_name,
91
91
  :class_name=>classify(app_name),
92
92
  :rapp_version=>Rapp::VERSION
93
93
  })
@@ -104,7 +104,7 @@ module Rapp
104
104
 
105
105
  def template_root
106
106
  File.join(File.dirname(__FILE__), 'templates')
107
- end
107
+ end
108
108
  end
109
109
  end
110
- end
110
+ end
data/lib/rapp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rapp
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - StabbyCutyou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler