architecture-js 0.5.4 → 0.5.5

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.5.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "architecture-js"
8
- s.version = "0.5.4"
8
+ s.version = "0.5.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dayton Nolan"]
@@ -22,7 +22,6 @@ module Architect
22
22
  else
23
23
  @root = File.expand_path(Dir.getwd)
24
24
  end
25
- @project = ArchitectureJS::Blueprint.new_from_config(@root)
26
25
  end
27
26
 
28
27
  def run
@@ -62,6 +61,7 @@ module Architect
62
61
  end
63
62
 
64
63
  def generate
64
+ @project = ArchitectureJS::Blueprint.new_from_config(@root)
65
65
  config = {
66
66
  arguments: @args,
67
67
  template: @args.first,
@@ -77,11 +77,13 @@ module Architect
77
77
  end
78
78
 
79
79
  def compile
80
+ @project = ArchitectureJS::Blueprint.new_from_config(@root)
80
81
  @project.config[:output] = 'compressed' if options[:c] || options[:compress]
81
82
  @project.update
82
83
  end
83
84
 
84
85
  def watch
86
+ @project = ArchitectureJS::Blueprint.new_from_config(@root)
85
87
  @project.update
86
88
  @watcher = @project.watch
87
89
  puts ArchitectureJS::Notification.log "architect is watching for changes. Type 'quit' to stop."
@@ -89,11 +91,13 @@ module Architect
89
91
  end
90
92
 
91
93
  def templates
94
+ @project = ArchitectureJS::Blueprint.new_from_config(@root)
92
95
  puts "Tempaltes:"
93
96
  @project.generator.templates.each { |k,v| puts " - #{k}" }
94
97
  end
95
98
 
96
99
  def src_files
100
+ @project = ArchitectureJS::Blueprint.new_from_config(@root)
97
101
  puts "Source files:"
98
102
  @project.src_files.each { |f| puts " - #{File.basename f}" }
99
103
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: architecture-js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -242,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: '0'
243
243
  segments:
244
244
  - 0
245
- hash: -1429009403293119997
245
+ hash: 2644890009641043081
246
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  none: false
248
248
  requirements: