dorian 2.5.1 → 2.5.2

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
  SHA256:
3
- metadata.gz: daa34dbc25084cd6652c8cf7b999ab959b3e41e92a10a971448e1475266a1ed2
4
- data.tar.gz: 5d734255d29aa6d47c43b48324ded6b851783faf209860e5b882b21c2b9df2ab
3
+ metadata.gz: 1dcd07e19e424772b965202cc544ba7d4bf8c0670c792c79b5678b50f546a5a7
4
+ data.tar.gz: b2f8d9bde82e265fee6aa29dfce68535322b32ffdda2388d86ee9163a544902c
5
5
  SHA512:
6
- metadata.gz: ef74841482a663c41d1c2aef834f3357d8cc826c7b5d9d052faaa882c204bf5001c91a08224c91527f550ca3ebf93ed0f0e1b70d2ca313ce6d7989cae6388a97
7
- data.tar.gz: 0ce5e3e7cf0e096a21b0277050ba583ffb3b160c5b77cc6cebdebfb8ba1260fea3ef5cae20ff408e947dc2137663378a37a385e0e255eaed29b8b1a71cb98797
6
+ metadata.gz: db846256d0dc2b5d4c7e44b560b1f4b0977cb7aa31b5fc965e10b61ac99f4ed4bd62f36bd9deb9c7b1f63c303119c730286be6c7009c95c3e28c048599a022cc
7
+ data.tar.gz: 353d55f6a0221ddd6c75485a452a26f1ffb64bcc7077aa6947d911e90c9847037531f156a99c3b54fa797cb0677ded9b8d57050bbebf0834025c9c13359d3a7c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dorian (2.5.1)
4
+ dorian (2.5.2)
5
5
  csv
6
6
  dorian-arguments
7
7
  dorian-eval
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.2
data/bin/dorian CHANGED
@@ -1,6 +1,31 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require_relative "../lib/dorian/bin"
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'dorian' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
5
10
 
6
- Dorian::Bin.run
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300).include?(
17
+ "This file was generated by Bundler"
18
+ )
19
+ load(bundle_binstub)
20
+ else
21
+ abort(
22
+ "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
23
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
24
+ )
25
+ end
26
+ end
27
+
28
+ require "rubygems"
29
+ require "bundler/setup"
30
+
31
+ load Gem.bin_path("dorian", "dorian")
data/lib/dorian/bin.rb CHANGED
@@ -16,7 +16,6 @@ require "syntax_tree"
16
16
  require "syntax_tree/erb"
17
17
  require "syntax_tree/haml"
18
18
  require "syntax_tree/xml"
19
- require "syntax_tree/json"
20
19
  require "tempfile"
21
20
  require "terminal-table"
22
21
  require "uri"
data/samples/books.jsonl CHANGED
@@ -1,3 +1,3 @@
1
1
  {"title":"The Great Gatsby","author":"F. Scott Fitzgerald","published_year":1925,"genres":["Novel","Historical"],"available":true}
2
2
  {"title":"To Kill a Mockingbird","author":"Harper Lee","published_year":1960,"genres":["Novel","Southern Gothic","Bildungsroman"],"available":false}
3
- {"title":"1984","author":"George Orwell","published_year":1949,"genres":["Dystopian","Political Fiction"],"available":true}
3
+ {"title":"1984","author":"George Orwell","published_year":1949,"genres":["Dystopian","Political Fiction"],"available":true}
data/samples/people.csv CHANGED
@@ -4,3 +4,4 @@ Bob,25,Los Angeles,Designer
4
4
  Charlie,35,Chicago,Teacher
5
5
  Diana,28,Miami,Developer
6
6
  Edward,40,San Francisco,Manager
7
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié