paste 0.0.1 → 0.0.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.
data/lib/paste.rb CHANGED
@@ -5,12 +5,11 @@ require 'active_support/core_ext/module/attr_accessor_with_default'
5
5
  require 'active_support/core_ext/module/delegation'
6
6
 
7
7
  module Paste
8
- VERSION = '0.0.1'
9
-
10
8
  autoload :Glue, 'paste/glue'
11
9
  autoload :NeedsUpdate, 'paste/needs_update'
12
10
  autoload :Rails, 'paste/rails'
13
11
  autoload :Resolver, 'paste/resolver'
12
+ autoload :VERSION, 'paste/version'
14
13
 
15
14
  module JS
16
15
  autoload :Base, 'paste/js/base'
@@ -21,9 +21,9 @@ module Paste
21
21
 
22
22
  # We want this serving to be at the very front
23
23
  config.app_middleware.insert_before Rack::Runtime,
24
- ::Rack::Static,
24
+ ::Rack::Static,
25
25
  :urls => ['/javascripts'],
26
- :root => Paste::JS.tmp_path
26
+ :root => File.dirname(Paste::JS::Base.destination)
27
27
  end
28
28
  end
29
29
 
@@ -0,0 +1,3 @@
1
+ module Paste
2
+ VERSION = '0.0.2'
3
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paste
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Crichton
@@ -93,6 +93,7 @@ files:
93
93
  - lib/paste/rails.rb
94
94
  - lib/paste/resolver.rb
95
95
  - lib/paste/tasks/paste.rake
96
+ - lib/paste/version.rb
96
97
  - lib/paste.rb
97
98
  - README.rdoc
98
99
  has_rdoc: true