rabl-extend-compiler 0.1.0 → 0.1.1

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: 6800322e724c36b879faea17b54b57e974a17e8b
4
- data.tar.gz: 47df4dec247d5afd65f5a937f3d1a59eddf23dfd
3
+ metadata.gz: f2ac309ce9779e6d5abe60c4e01d848ed97f58ca
4
+ data.tar.gz: c9d4105bb69d472df06cf91a048b7db42ac49460
5
5
  SHA512:
6
- metadata.gz: a3bf09a07f4065b4d09a0b969987baa7765e9a2c98c796fe8b5e84c64572f0ee8b139093325ceb98466f0c4506696c6bc63e9b185e3d01b6e8cf3748ac4751a2
7
- data.tar.gz: 208cba9d955087baf5d463b93f6aab6c821c5153aa7ec43c2eb626e2c3b69d151b19514706b200023be3c4f03c4cb1a6d0f286d8426b338458cdb4aaaebbb698
6
+ metadata.gz: b0ed47bacd47746088baf4e5a0aa726ab8ada60c4e26dd3f4d0334a4d642d743611b54310604a78fd8af3dcd6324429af1d533cb4dd79c27b4961e83ab0cc561
7
+ data.tar.gz: eb5ff5f810476ed552a90a97466186fb6e249ffd58a974c5590b56380ec9234f69a204969e79cbff45e7f49e861ec83d8be1b3d9f365f03a8ab7244b1a745919
data/README.md CHANGED
@@ -30,13 +30,28 @@ This gem merely outlines the components and they may be used as you see fit at v
30
30
  The rake tasks are:
31
31
 
32
32
  `rake rabl:extend:compiler:all` Runs all steps
33
+
33
34
  `rake rabl:extend:compiler:reset` Will reset all signatures from the extended files
35
+
34
36
  `rake rabl:extend:compiler:compile` Will compile and sign each use of `extend` in the code base
37
+
35
38
  `rake rabl:extend:compiler:verify` Will `exit(1)` if the extensions are not compiled or the signatures do not match on the compiled extensions
36
39
 
37
40
 
38
41
  The "signatures" encompass the attributes or files from an extension and are merely a SHA256 digest of the file contents during the compilation step and creates an easy and fast mechanism to determine if the extended files have been altered without updating the extensions.
39
42
 
43
+ The rake tasks above will create the signature and file below when extending anther file (check spec directory for more examples)
44
+
45
+ ```ruby
46
+ # rabl-extend-compiler extends "extend" => 9ebbe5e06dc6163365ca3d550b757464f0cdfe4b4227a7d52d4e6c1cc11af484
47
+ #
48
+ # This file segment is generated by rabl-extend-compiler rake task
49
+ # and should not be edited. To edit the generated extension
50
+ # edit the file at: ["extend"]
51
+ attributes :id, :derp, :body
52
+ # 9ebbe5e06dc6163365ca3d550b757464f0cdfe4b4227a7d52d4e6c1cc11af484
53
+ ```
54
+
40
55
  ## Development
41
56
 
42
57
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,7 +1,7 @@
1
1
  module Rabl
2
2
  module Extend
3
3
  module Compiler
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  spec.add_dependency "rabl"
35
- spec.add_dependency "rake", "~> 10.0"
35
+ spec.add_dependency "rake", ">= 10"
36
36
 
37
37
  spec.add_development_dependency "pry"
38
38
  spec.add_development_dependency "bundler", "~> 1.16"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabl-extend-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-09 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rabl
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '10'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement