embork 0.0.9 → 0.0.10

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: c7a3dc2d7ad2150b084ce2c27a7e5614499960e0
4
- data.tar.gz: d6393eb0b361c354101b206c108c01e551f7c47b
3
+ metadata.gz: 5e0de928a956763702a9ffac524b7904d9133f5c
4
+ data.tar.gz: 4a8bd7b3b851142c4199756f8992a68f1f4ec73b
5
5
  SHA512:
6
- metadata.gz: 97a58839b957d3488104b7580f95c6f0a8ea8920d1ffb8ae7ab3b34915fbb87c856aac37facc60a60cdbc3e3d925e25ec3a11cc67ac78fbd3cd4263114cf9861
7
- data.tar.gz: d8a0cdb1aeae8f8f8fbf21ab3e92ebf40c445bf0beede16f25774c64e974234f802e97383ec7c6f68010c2cc1e79e4085f69acc6558ec53d2ad7ee83b57dd119
6
+ metadata.gz: 70cd49c254b62de1df4248d2df2a692de6ad7d7ad450b924dc738d3fc86e2c105825b86470c7d53f9892447124a120d26bb041bc48b17e2bc158a896fa13aaa2
7
+ data.tar.gz: 1230d8591e624437b97f2295a11efe3f6bb12c43199ac98a64aa91445b189e52ae7d834c182be87b50a09b95edd85cb7a02e16f3246ca9f4e438fa319bb91ccd
@@ -1,3 +1,7 @@
1
+ # 0.0.10
2
+ - Add project root to the extension. Rack applications that included it
3
+ typically have a need to know.
4
+
1
5
  # 0.0.9
2
6
  - Change every instance of 'bundled_version' to 'bundle_version' for
3
7
  consistency.
@@ -2,11 +2,13 @@ require 'embork/sprockets/helpers'
2
2
  require 'embork/borkfile'
3
3
 
4
4
  class Embork::Extension
5
- def initialize(borkfile_path, bundled_assets = false, environment = nil)
6
- @borkfile = Embork::Borkfile.new options[:borkfile], environment
5
+ attr_reader :project_root
6
+
7
+ def initialize(project_root, bundled_assets: false, environment: nil)
7
8
  @environment = environment || Embork.env || ENV['RACK_ENV']
9
+ @project_root = project_root
8
10
  if bundled_assets
9
- version_file_path = File.join(@borkfile.project_root, 'build',
11
+ version_file_path = File.join(project_root, 'build',
10
12
  @environment.to_s, 'current-version')
11
13
  @bundle_version = File.read(version_file_path)
12
14
  @use_bundled_assets = true
@@ -1,3 +1,3 @@
1
1
  class Embork
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mina Smart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-13 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets