orkester 0.0.4 → 0.0.5

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: a64fa407f693b7f201eef19734dd9f744d88e79a
4
- data.tar.gz: 7d1c909bd3670cdc42dbc1308fe96219269cea35
3
+ metadata.gz: 162df91e74fad15643e12502aad29cbcc8483493
4
+ data.tar.gz: b51e1cb9f8e1e6a3221582d6b59d1756dc8c092a
5
5
  SHA512:
6
- metadata.gz: 1c996c9b789617008d202c15c4f92ac6f951b02b507c1471576c516a663a000308a68ca587678dc05ca5875c1309800f33069c544c065ae098b7691ad77c2cbb
7
- data.tar.gz: 06e5d20543ea99106015819a9c5cf85d9cbb5ed9a835a184f46342052828cf5d52facfd4650e313ef308f3a96b7125bc4c4e26b9f5e87177a6dad6de47492f43
6
+ metadata.gz: 27e1c7a2846ac36d43a1f2097eed52afa194cacbe7d6e8b9ef01dcd56deefd80b3172ac9e1cf9b1f400b0881432a440e08b74e9089caae8470069d0aa2bbae37
7
+ data.tar.gz: f903beabff551b053351477927409a3424008b25c8ca9f480779856941afd4bee4e7070e6562597664b9754217ccbe2670833bbe181d251d4bcb0c6c4d05347c
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Orkester
2
2
 
3
- Orkester is a very simple package manager and build system from static assets.
3
+ Orkester is a package manager and build system for static assets.
4
4
 
5
5
  ### Features
6
6
 
7
- 1. Create self contained packages containing all javascripts and stylesheets
8
- 2. Use sprockets to handle asset compilation and concatenation
9
- 2. Manage dependencies transparently
7
+ 1. Packages should be self contained.
8
+ 2. Have dependencies
9
+ 3. Use sprockets to handle asset compilation and concatenation
10
10
 
11
11
  ## Installation
12
12
 
@@ -20,10 +20,9 @@ And then execute:
20
20
 
21
21
 
22
22
  ## Usage
23
-
24
- ### Project structure
23
+ ### Project structure
25
24
 
26
- Packages dir in root/packages or app/packages if using with rails.
25
+ Packages dir in root/packages or app/packages if using with rails.
27
26
 
28
27
  |-- another dependency
29
28
  | |-- javascripts
@@ -40,37 +39,36 @@ And then execute:
40
39
  | `-- main.css.sass
41
40
 
42
41
 
43
- ### Package.yaml
42
+ ### Package.yaml
44
43
 
45
44
  name: main
46
45
  dependencies:
47
46
  -
48
47
  name: jquery
49
- remote_location: http://code.jquery.com/jquery-1.11.0.js
50
- install_location: vendor/jquery
51
- type: "javascripts"
48
+ remote: http://code.jquery.com/jquery-1.11.0.js
49
+ location: vendor/jquery
52
50
  -
53
51
  name: dependency2
54
52
 
55
- ### Sprocket support
53
+ ### Sprocket support
56
54
 
57
- root/packages/#{PACKAGE_NAME}/javascripts/main.js
58
- #= require_tree ./views
59
- $(document).ready () =>
60
- console.log 1
61
- ### Running
55
+ root/packages/#{PACKAGE_NAME}/javascripts/main.js
62
56
 
63
- For a non rails project, navigate to root of your project, and run orkester serve -p 3333
57
+ #= require_tree ./views
58
+ $(document).ready () =>
59
+ console.log 1
64
60
 
65
- Package should be vieweable at /orkester/#{PACKAGE_NAME}/info
61
+ ### Running
66
62
 
67
- /orkester/#{PACKAGE_NAME}/javascripts/main.js and /orkester/#{PACKAGE_NAME}/stylesheets/main.css includes all of its js/css, and of its dependencies.
63
+ For a non rails project, navigate to root of your project, and run orkester serve -p 3333
68
64
 
69
- From Rails you also have helpers to include a package
65
+ Package should be vieweable at `/orkester/#{PACKAGE_NAME}/info`
70
66
 
71
- <%= orkester_include_package "main" %>
67
+ `/orkester/#{PACKAGE_NAME}/javascripts/main.js` and `/orkester/#{PACKAGE_NAME}/stylesheets/main.css` includes all of its js/css, and of its dependencies.
72
68
 
69
+ From Rails you also have helpers to include a package
73
70
 
71
+ <%= orkester_include_package "main" %>
74
72
 
75
73
  ## Contributing
76
74
 
@@ -4,7 +4,7 @@ module Orkester
4
4
  def initialize(args)
5
5
  @context = args[:context]
6
6
  @package_defination = args[:package_defination]
7
- @install_location = @package_defination["install_location"] || @package_defination["name"]
7
+ @install_location = @package_defination["location"] || @package_defination["name"]
8
8
  @assets = ::Sprockets::Environment.new @context.root.join(@install_location)
9
9
  @assets.append_path 'javascripts'
10
10
  @assets.append_path 'stylesheets'
@@ -7,7 +7,7 @@ module Orkester
7
7
  def initialize(args)
8
8
  @context = args[:context]
9
9
  @package = args[:package]
10
- @install_location = @package["install_location"] || @package["name"]
10
+ @install_location = @package["location"] || @package["name"]
11
11
  @package_path = @context.root.join(@install_location)
12
12
  self.load_defination
13
13
  end
@@ -42,12 +42,11 @@ module Orkester
42
42
 
43
43
  def include_from_remote(dependency)
44
44
  p dependency
45
- uri = URI(dependency["remote_location"])
46
- p dependency["type"]
47
- FileUtils.mkdir_p @package_path.join(dependency["type"])
45
+ uri = URI(dependency["remote"])
46
+ FileUtils.mkdir_p @package_path.join("javascripts")
48
47
  str = Net::HTTP.get(uri)
49
48
 
50
- File.write @package_path.join( dependency["type"], "main.js"), str
49
+ File.write @package_path.join( "javascripts", "main.js"), str
51
50
  File.write @package_path.join("package.yaml"), dependency.to_yaml
52
51
  end
53
52
 
@@ -1,3 +1,3 @@
1
1
  module Orkester
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orkester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhishiv Saxena