brief 1.11.3 → 1.11.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5f4d88f2cab10b3971d97391c1366fb260cc0c3
4
- data.tar.gz: 3d7fff61468bdb272f5a4b7eae090c5cedd225d9
3
+ metadata.gz: 25ab9ae19b02206782ff3415482b053945495454
4
+ data.tar.gz: ce33365de78191d581e90c4c4654e82d7d90bb2e
5
5
  SHA512:
6
- metadata.gz: 16a7deea0a3cacd95f401489a786f46963c744c3ac9183f2cd19bd1786d39e95846d82d711f98a640c94aa266936335794020d212fdd90362ec1825fc407f9d3
7
- data.tar.gz: 027bdb7f68a7fb79be18629dd7dd0c34e5c04524721a6d03b03ae860b013121ea84586d19409bba4d8e9050b8b6806d3325642137e9a2fa221c9614d6b885c9b
6
+ metadata.gz: 21725152979f748f4f9b15e2e9a70985fac664b1da5c7f9fb99a50b01d650e5c1b3532a55c1698475febf44fbbae9aeb11d7114b4ad4fd4121ef5ab1b09ca5c3
7
+ data.tar.gz: 2639ea37e041eb83bb368a75f49ade139d56f62861852f938a39636860094cebdfe3dfd534019b6066f070143eb509e84cd5353bb61608c221e2c2993b38b2e8
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.11.3)
5
- activesupport (~> 4.0)
4
+ brief (1.11.4)
5
+ activesupport (> 4.0)
6
6
  commander (~> 4.3)
7
- em-websocket (= 0.5.1)
8
- eventmachine (= 1.0.6)
7
+ em-websocket (~> 0.5)
8
+ eventmachine (~> 1.0)
9
9
  github-fs (~> 0)
10
10
  github-markdown (= 0.6.8)
11
11
  hashie (>= 3.0.4)
12
- hike (~> 2.1)
12
+ hike (>= 2.1)
13
13
  inflecto (~> 0)
14
- nokogiri (= 1.6.5)
14
+ nokogiri (~> 1.6)
15
15
  thin (= 1.6.3)
16
16
  virtus (~> 1.0)
17
17
 
data/brief.gemspec CHANGED
@@ -23,17 +23,17 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency 'github-fs', '~> 0'
24
24
  spec.add_dependency 'virtus', '~> 1.0'
25
25
  spec.add_dependency 'inflecto', '~> 0'
26
- spec.add_dependency 'activesupport', '~> 4.0'
27
- spec.add_dependency 'hike', '~> 2.1'
28
- spec.add_dependency 'nokogiri', '1.6.5'
26
+ spec.add_dependency 'activesupport', '> 4.0'
27
+ spec.add_dependency 'hike', '>= 2.1'
28
+ spec.add_dependency 'nokogiri', '~> 1.6'
29
29
 
30
30
  #spec.add_dependency 'github-markup', '~> 1.3.1'
31
31
  #spec.add_dependency 'github-linguist', '~> 4.2.5'
32
32
  #spec.add_dependency 'html-pipeline', '~> 1.11.0'
33
33
  #spec.add_dependency 'sanitize', '~> 3.1.0'
34
34
  spec.add_dependency 'github-markdown', '0.6.8'
35
- spec.add_dependency 'eventmachine', '1.0.6'
36
- spec.add_dependency 'em-websocket', '0.5.1'
35
+ spec.add_dependency 'eventmachine', '~> 1.0'
36
+ spec.add_dependency 'em-websocket', '~> 0.5'
37
37
  spec.add_dependency 'thin', '1.6.3'
38
38
 
39
39
 
data/lib/brief/apps.rb CHANGED
@@ -4,6 +4,10 @@ module Brief
4
4
  Brief.lib_root.join("..","apps")
5
5
  end
6
6
 
7
+ def self.home_apps_path
8
+ Brief.home.join("apps")
9
+ end
10
+
7
11
  def self.search_paths
8
12
  paths = [default_path]
9
13
 
@@ -0,0 +1,21 @@
1
+ command "create app" do |c|
2
+ c.syntax = "brief create app NAME"
3
+ c.description = "create a new brief app"
4
+
5
+ c.option '--clone EXISTING_APP', String, 'Clone an existing app'
6
+
7
+ c.action do |args, options|
8
+ name = args.first
9
+ end
10
+ end
11
+
12
+ command "create briefcase" do |c|
13
+ c.syntax = "brief create app PATH"
14
+ c.description = "create a new briefcase"
15
+
16
+ c.option '--app APP_NAME', String, 'Use the specified app'
17
+ c.option '--use-local-models', nil, 'When using an app, this option will copy over the models locally instead, so you can customize them.'
18
+
19
+ c.action do |args, options|
20
+ end
21
+ end
data/lib/brief/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.11.3'
2
+ VERSION = '1.11.4'
3
3
  end
data/lib/brief.rb CHANGED
@@ -9,6 +9,7 @@ require 'nokogiri'
9
9
  require 'yaml'
10
10
  require 'erb'
11
11
  require 'hike'
12
+ require 'pry'
12
13
 
13
14
  module Brief
14
15
  # When packaging this up through the traveling ruby system
@@ -18,6 +19,14 @@ module Brief
18
19
  ENV.fetch('BRIEF_PWD') { Dir.pwd }
19
20
  end
20
21
 
22
+ def self.home
23
+ Pathname(ENV['HOME']).join(".brief")
24
+ end
25
+
26
+ def self.initialize_home!
27
+ FileUtils.mkdir_p(home)
28
+ end
29
+
21
30
  def self.cases
22
31
  @cases ||= {}
23
32
  end
@@ -26,8 +35,6 @@ module Brief
26
35
  @briefcase = value
27
36
  end
28
37
 
29
- require 'pry'
30
-
31
38
  def self.case(fire=false)
32
39
  if @briefcase.is_a?(Brief::Briefcase)
33
40
  @briefcase
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brief
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.3
4
+ version: 1.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Soeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-30 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -84,44 +84,44 @@ dependencies:
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '4.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: hike
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '2.1'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: nokogiri
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.6.5
117
+ version: '1.6'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.6.5
124
+ version: '1.6'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: github-markdown
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -140,30 +140,30 @@ dependencies:
140
140
  name: eventmachine
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.0.6
145
+ version: '1.0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.0.6
152
+ version: '1.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: em-websocket
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '='
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.5.1
159
+ version: '0.5'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '='
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.5.1
166
+ version: '0.5'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: thin
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -343,6 +343,7 @@ files:
343
343
  - lib/brief/cli/01_extensions.rb
344
344
  - lib/brief/cli/all.rb
345
345
  - lib/brief/cli/browse.rb
346
+ - lib/brief/cli/create.rb
346
347
  - lib/brief/cli/export.rb
347
348
  - lib/brief/cli/parse.rb
348
349
  - lib/brief/cli/render.rb