hexlet 0.3.1 → 0.3.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
  SHA1:
3
- metadata.gz: 968b6bc07a4084bc61a8befac18e979e83c28558
4
- data.tar.gz: 348389997ac2e1e3163435dd83b2958854290309
3
+ metadata.gz: 83667856922d7be718c50a433c1030b80ff01e79
4
+ data.tar.gz: 07f72445f54353ae7c2008ba58afa021d7f00b62
5
5
  SHA512:
6
- metadata.gz: dc11ea1859b8b0832b3a158c24fa1aac972fcdde812ada60066abe22428e1af9f4b1a43067a9aed1aac08dcfd7a8c39e0534ee2b788d996b5727a8aefe2955fe
7
- data.tar.gz: 92e9c6c57326e2439be80684b4a2bd7e37520a89c84da364074f8b8d02ec0417991274dca54df64cca500e5ff5710b2858fd883ef0268ad78a0c952d1756aab9
6
+ metadata.gz: ed2365506f02afce46085b90d5e2fba665c0a39ecfec0cf5eaa2d46dd8052b30042debd22d2861b7d9d6909ea3b3ce007ac0884c49ebf791424c0268b4f1d648
7
+ data.tar.gz: 3946bb29c3b6841ec063b7edc3518645cd74d7e8c85594464ebee4c3e8eeb53c64e8d26e5ea8561d24c855083bf764822a7669f9994557f10d8cba091d4f708e
@@ -25,5 +25,4 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "rest_client"
26
26
  spec.add_dependency "i18n"
27
27
  spec.add_dependency "minitar"
28
- # spec.add_dependency "childprocess"
29
28
  end
@@ -17,10 +17,6 @@ I18n.available_locales = [:en]
17
17
  I18n.enforce_available_locales = true
18
18
  I18n.locale = :en
19
19
 
20
- I18n.load_path = Dir['locales/*.yml']
21
- I18n.backend.load_translations
22
- I18n.t "key" # FIXME this is hack
23
-
24
20
  module Hexlet
25
21
  autoload "Router", "hexlet/router"
26
22
 
@@ -32,5 +28,11 @@ module Hexlet
32
28
  autoload "MemberCLI", "hexlet/member_cli"
33
29
  autoload "TeacherCLI", "hexlet/teacher_cli"
34
30
 
35
- # Your code goes here...
31
+ def self.root
32
+ File.expand_path '../..', __FILE__
33
+ end
36
34
  end
35
+
36
+ I18n.load_path = Dir[File.join(Hexlet.root, 'locales', '*.yml')]
37
+ I18n.backend.load_translations
38
+ I18n.t "key" # FIXME this is hack
@@ -1,3 +1,3 @@
1
1
  module Hexlet
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -17,7 +17,7 @@ class Hexlet::TeacherCLITest < MiniTest::Test
17
17
  to_return(:status => 201)
18
18
 
19
19
  FakeFS do
20
- folder = "my_super_lesson"
20
+ folder = "super_lesson"
21
21
  FileUtils.mkdir(folder)
22
22
  result = Hexlet::TeacherCLI.start ["submit", folder, "--verbose"]
23
23
  assert { result }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Mokevnin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2014-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler